Programming Languages C Objective
Mar 08, 2013

What will be output of the following c code?

void main()
 {
  signed int a=-1;
  unsigned int b=-1;
  if(a==b)
  printf("%d %d",a,b);
else
 printf("Not equal");
}

Choose the correct answer:
A) -1 32767
B) Not equal
C) -1 -1
D) Compiler error
Detailed Explanation

No Explanation

Discussion (0)

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

Share Your Thoughts
Feedback