Q:

What will be output of the following c code? ( according to GCC compiler)

belongs to collection: SYSTEMS PROGRAMMING LANGUAGES MCQ

0

What will be output of the following c code? ( according to GCC compiler)

#include
int main(){
signed x;
unsigned y;
x = 10 +- 10u + 10u +- 10;
y = x;
if(x==y)
printf(“%d %d”,x,y);
else if(x!=y)
printf(“%u %u”,x,y);
return 0;
}

  1. 0 0
  2. 65536 -10
  3. 0 65536
  4. Compilation error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).0 0

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

SYSTEMS PROGRAMMING LANGUAGES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be output of the following c code?... >>
<< What will be output of the following code?...