Question:What will be output when you will execute following c code?
#include<stdio.h>
int main(){
    int a=-5;
    unsigned int b=-5u;
    if(a==b)
         printf("Avatar");
    else
         printf("Alien");
    return 0;
}
 

A Avatar 

B Alien 

C Run time error 

D Error: Illegal assignment 

E Error: Don’t compare signed no. with unsigned no. 

+ Answer
+ Explanation
+ Report
Total Preview: 762

Copyright © 2024. Powered by Intellect Software Ltd