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
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
With the help of using classes, write a program to add two numbers.
What is unsigned int in c?
Is swift based on c?
What are called c variables?
What is a rvalue?
Where are the auto variables stored?
What is difference between static and global variable in c?
Why do we need a structure?
Explain 'bus error'?
Explain what is the difference between far and near ?
Differentiate between functions getch() and getche().
What are the 32 keywords in c?
Find MAXIMUM of three distinct integers using a single C statement
Explain Basic concepts of C language?