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
Answer Posted / guest
Ans. A
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is double pointer in c?
How do you use a pointer to a function?
What is structure padding in c?
Do you know the difference between exit() and _exit() function in c?
What is structure packing in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is a method in c?
What is getch() function?
Why ca not I do something like this?
What are high level languages like C and FORTRAN also known as?
Why is struct padding needed?
What are the types of pointers?
What is sizeof in c?
What are header files why are they important?