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
Which are low level languages?
What is memcpy() function?
Explain how do you print only part of a string?
What is %d used for?
What are the parts of c program?
What language is c written?
What are the disadvantages of a shell structure?
What is the difference between array and structure in c?
How do you override a defined macro?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
When should structures be passed by values or by references?
Explain zero based addressing.
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What are the back slash character constants or escape sequence charactersavailable in c?
Explain what is page thrashing?