Question:What will be output when you will execute following c code?
#include<stdio.h>
void main(){
    signed int a=-1;
    unsigned int b=-1u;
    if(a==b)
         printf("The Lord of the Rings");
    else
         printf("American Beauty");
}
Choose all that apply: 

A The Lord of the Rings 

B American Beauty 

C Compilation error: Cannot compare signed number with unsigned number 

D Compilation error: Undefined symbol -1u 

E Warning: Illegal operation 

+ Answer
+ Report
Total Preview: 619

Copyright © 2024. Powered by Intellect Software Ltd