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 the use of typedef in structure in c?
Lists the benefits of c programming language?
Explain what are run-time errors?
cavium networks written test pattern ..
What is the general form of #line preprocessor?
Can you please explain the scope of static variables?
Explain how does flowchart help in writing a program?
What is the difference between ++a and a++?
Write a Program to find whether the given number or string is palindrome.
what are enumerations in C
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
write a program fibonacci series and palindrome program in c
What is typedef struct in c?
How can I handle floating-point exceptions gracefully?
What is the modulus operator?