[Solved] Changing array inside the main function. Error:assignment to expression with array type

[ad_1]

you need to use strcpy() function

#include <stdio.h>
#include <string.h>
int main()
{
    char name[5] = "Mark";
    printf("%s\n", name);
    char get[5] = "Alex";
    strcpy(name, get);
}    

[ad_2]

solved Changing array inside the main function. Error:assignment to expression with array type