algorithms and random thoughts
Friday, November 4, 2011
C traps and pitfalls by Andrew Koenig
int a[] = { 1, 2, 3, };
It is legal to have a trailing comma after the last literal, namely 3 here.
because a[i] is the same as *(a+i), it is also the same as i[a], surprising, but true.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment