Q: If I can say
char a[] = "Hello, world!";
char a[14]; a = "Hello, world!";
A: Strings are arrays, and you can't assign arrays directly. Use strcpy instead:
strcpy(a, "Hello, world!");
See also questions 1.32, 4.2, 6.5, and 7.2.
Hosted by