What is the result
main()
{
char c=-64;
int i=-32
unsigned int u =-16;
if(c>i){
printf("pass1,");
if(c<u)
printf("pass2");
else
printf("Fail2");}
else
printf("Fail1);
if(i<u)
printf("pass2");
else
printf("Fail2")
}
a)Pass1,Pass2
b)Pass1,Fail2
c)Fail1,Pass2
d)Fail1,Fail2
e)none
Answer Posted / bishnu agrawal
it is an error bcoz u can assing a signed value to unsigned variable so answer is null
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain high-order and low-order bytes.
Explain what does the format %10.2 mean when included in a printf statement?
Can stdout be forced to print somewhere other than the screen?
Why is c fast?
What is use of null pointer in c?
Who invented b language?
The statement, int(*x[]) () what does in indicate?
Is struct oop?
What are the different types of pointers used in c language?
What are the advantages of external class?
Which is the best website to learn c programming?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What does the characters “r” and “w” mean when writing programs that will make use of files?
What is difference between class and structure?
Write a program to implement queue.