Programming Languages C Objective
Mar 09, 2013

What will be output of the following c code?

#include<stdio.h>
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;
 }

Choose the correct answer:
A) 0 65536
B) 0 0
C) 65536 0
D) Compiler error
Detailed Explanation

No Explanation

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback