adplus-dvertising
frame-decoration

Question

What will be the output of the program?

 int a=2,b=2;
 if(a && 0) 
     b=0;
 else 
     b*=10;
  printf("%d",b);

a.

0

b.

20

c.

2

d.

None of the above

Posted under C Programming

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?