adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
int main(){
   signed a;
 unsigned b;
 a = 6u + -16 + 16u + -6;
 b = a + 1;
 if(a == b)
 printf("%d %d",a,b);
 else
 printf("%u %u",a, b);
    return 0;
}

a.

Compilation error

b.

1 0

c.

0 0

d.

0 1

Answer: (d).0 1

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?