Question:What will be output when you will execute following c code?
#include<stdio.h>
int main(){
    signed x,a;
    unsigned y,b;
    a=(signed)10u;
    b=(unsigned)-10;
    y = (signed)10u + (unsigned)-10;
    x = y;
    printf("%d  %u\t",a,b);
    if(x==y)
         printf("%d %d",x,y);
    else if(x!=y)
         printf("%u  %u",x,y);
    return 0;
}
Choose all that apply: 

A 10 -10 0 0 

B 10 -10 65516 -10 

C 10 -10 10 -10 

D 10 65526 0 0 

E Compilation error 

+ Answer
+ Explanation
+ Report
Total Preview: 717

Copyright © 2024. Powered by Intellect Software Ltd