Question:What will be output if you will compile and execute the following c code?
#include<stdio.h>
int main(){
 signed int a=-1;
 unsigned int b=-1;
 if(a==b)
   printf("%d %d",a,b);
 else
   printf("Not equal");
 return 0;
}
 

A -1 -1 

B -1 32767 

C -1 -32768 

D Not equal 

E Compiler error 

+ Answer
+ Report
Total Preview: 3728

Copyright © 2024. Powered by Intellect Software Ltd