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

Loading

โœช Choose the correct option.

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


#include
int main(){
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
printf("%u %d",x,y);
return 0;
}

A. same, and x=MAXINT, y=-1
B. not same, and x= MAXINT, y= -MAXINT
C. same , and x=MAXUNIT,y -1
D. same, iand x=y=MAXUNIT