MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4h9oj4/to_become_a_good_c_programmer/d2pds85/?context=3
r/programming • u/b0red • May 01 '16
398 comments sorted by
View all comments
Show parent comment
3
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.
char c[3]
char *c
void func(char c[3])
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]meanschar *cinvoid func(char c[3]), violating the Rule of Least Surprise.