3 ms·
Also sizeof is different. char a[20]; char *b; sizeof a -> the size of the array (20) sizeof b -> the size of the pointer (8 on my machine)
by mpweiher 12y ago
Also sizeof is different.
char a[20];
char *b;
sizeof a -> the size of the array (20)
sizeof b -> the size of the pointer (8 on my machine)
- syncsynchalt 12y agoYes, to me this is the largest difference, since it will cause runtime errors instead of compile problems.
- armada651 12y agoI was really surprised that it wasn't mentioned since it is the most important difference and a cause of frustration for programmers just beginning to learn C.