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");
}

a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT



In the following code segment what will be the result of the function, value of x , v..

Answer / guest

Ans. A

Is This Answer Correct ?    4 Yes 6 No

Post New Answer

More C Interview Questions

What is binary tree in c?

0 Answers  


what are brk, sbrk?

1 Answers   Oracle,


main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above

6 Answers  


What is self-referential structure in c programming?

0 Answers  


What is a structure in c language. how to initialise a structure in c?

0 Answers  






Tell us two differences between new () and malloc ()?

0 Answers   Adobe,


In scanf h is used for

4 Answers   BFL,


c program to manipulate x=1!+2!+3!+...+n! using recursion

1 Answers   TCS,


write a c program to find the probability of random numbers between 1-1000

0 Answers   ADS,


how can i get this by using for loop? * ** * **** * ******

3 Answers   Excel,


12344321 123 321 12 21 1 1 how i print this program??

5 Answers   DSR Management, Winit,


write a program that finds the factorial of a number using recursion?

13 Answers   Infosys, TATA,


Categories