posted 20 years ago
I'm looking for any potential gotchas I might have missed.
A couple of points I came across:-
From K & R
int [] x , y ; //defines two arrays of ints
int x [], y; //defines one array of ints and one int primitive
K and R states that if [] follows the type then all variables in the declaration are arrays. Otherwise the [] must follow each array name in the declaration.
From Dan's exam:-
int []a3,[]a4;
does not compile, because the [] must be placed after the type or identifier.
None of these seem to be covered in S & B. Am I just getting pre-exam jitters or what?
"....bigmouth strikes again, and I've got no right to take my place with the human race...."<p>SCJP 1.4