(b) Predict the output:
int a=6,b=5;
a+ = a++ % b++ *a + b++* --b; Please explain
Answers
Answered by
14
Answer:
a= a+a++ % b++ * a + b++ * --b;
a= 6+6%5*7+6*6;
a= 6+0*7+36; // a is int so 6%5=0.3 will become 0
a=6+36;
a=42;
Similar questions