Ask Question | Take Test

In the following code segment what will be...

0

In the following code segment what will be the result of the function

value of x , value of y {unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); }
  1. same, MAXINT, -1
  2. not same, MAXINT, -MAXINT
  3. same , MAXUNIT, -1
  4. same, MAXUNIT, MAXUNIT
Asked By : PaviCategory : C
Answer
a. same, MAXINT, -1

Copyright © Interviewkiller.com - Job Interview Questions and Answers - Recruitment Tips