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 / karthika
pass1 fail2
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
How can a string be converted to a number?
How many types of functions are there in c?
What is nested structure in c?
How to define structures? ·
When should you not use a type cast?
How can I call a function with an argument list built up at run time?
What is unsigned int in c?
What is the difference between exit() and _exit() function in c?
What is double pointer in c?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Why is it usually a bad idea to use gets()? Suggest a workaround.
What is infinite loop?
What is the difference between memcpy and memmove?
What is a pragma?
What are logical errors and how does it differ from syntax errors?