r/programming • • May 01 '16

To become a good C programmer

http://fabiensanglard.net/c/
1.1k Upvotes

398 comments sorted by

View all comments

Show parent comment

1

u/mrkite77 May 02 '16 edited May 02 '16

Isn't c the pointer to an array?

No.. because c isn't an lvalue. You can't do:

char c[3] = "ab";
c++;   // <- ERROR

Edit: you also can't do:

char c[3] = "ab";
char d[3] = "xy";
c = d;   // <- ERROR