Points to remember:
1) 1) If an integer is starting with “0” it means it is an octal number. So 010 is not equal to 10.
2) 2) i = i++;
i = ++i;
First statement assignment is lost because it is of self- assignment
Second statement assignment is not lost because it is pre-assignment.
3) int i,j;
for (i=5,j=3; j<i ; ++j,i--)
j = j * i; // i = i * j, it gives garbage value
for (j=5,i=3; i<j; ++i,j--)
i = i * j; // j = j * i, it gives garbage value
printf("%d\n",i);
printf("%d\n",j);
4) 4) If the function value are passed as value it retains its original value but if it is passed as reference the values get changed.
5) 5) && cannot be applied to two int values in java.
6) 6) & only works on java loops.
7) 7) Values need to be initialized for the variable whose calculation needs to be done.
8) 8) int array can be initialized in single quotes. It takes the ASCII value for the respective character which we initialized.
9) 9) Continue can be followed after break, but it won’t have any effect on the remaining code.
10 10) For loop without body will run until the condition fails.
Thus, for (i=0;i<5;i++) == for (i=0;i<5;i++) { }
1 11) Any statements after break and continue will give a warning in java.