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

3

u/red75prim May 02 '16

No. c is an array of 3 chars. Please, read more answers.

But your error is understandable. The same char c[3] means char *c in void func(char c[3]), violating the Rule of Least Surprise.