
Introduction to Operators and Expression in Java • 69
int x = (2, 5, 6);
System.out.println (“x =”+x);
This will generate compilation errors.
Also, in loops, the following code will generate compilation errors.
for(i=0, j=10;i<10,j>=10;i++,j- -)
{
}
In the condition part (i<10, j>=10) one cannot use comma as operator.
3.10 THE sizeof() OPERATOR
In C and C11, the sizeof() operator satisfi es a specifi c need: it tells the number of bytes allocated for
the data items. The most compelling need for sizeof() in C and C11 is portability. Different data types
might be of different sizes on different machines, so the programmer must fi