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
how to find binary of number?
How many data structures are there in c?
What are the disadvantages of a shell structure?
What is the purpose of the statement: strcat (S2, S1)?
What is the difference between a function and a method in c?
What is the difference between declaring a variable and defining a variable?
Why is c called c?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Why is c called a mid-level programming language?
Wt are the Buses in C Language
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What are pragmas and what are they good for?
Explain union.
What is the difference between variable declaration and variable definition in c?