I thought Eckel's book was especially good for someone who already had a background in C.
char* var1;
char var2;
char var2, *var1;
char var2, [] var1;
That said, I understand the differences in traditions.
I think that C's syntax is flexible that we can each go to our own, and decide which is more readable.
typedef char * pchar; pchar var1, var2; // Now they're both pointers
char var1[10];
and not
char[10] var1;
The rule is simple once you understand it, variables are declared with the same syntax that is used to access it later.
Create an account to get your API key.
I thought Eckel's book was especially good for someone who already had a background in C.