adplus-dvertising
frame-decoration

Question

What will be the output of the program?
 int a=0,b=2;
 if(a=0) b=0;
 else b*=10;

a.

0

b.

20

c.

2

d.

None of the above

Answer: (b).20

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the program?