Consider the following statements i 3 j i4 i 3 a Does j
Consider the following statements:
i = 3;
j = ++i*4 , i++ * 3;
a. Does j have a defined value in C? If so, what is it?
b. Does j have a defined value in Java? If so, what is it
Solution
IN C:
Yes j has a value i.e. 16 , only the first assignmnet is done i.e. ++i*4 and the second assignment i++*3 is ignored but the value of i will be increased there.
In JAVA:
This type of multiple assigment is not taken, and j cannot be defined
