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 / madhuri
here int i=-32 is not terminated so syntax error
if that statement was terminated then the answer would be
none in the given options because the output of the program
would be
pass1
pass2
pass2
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is ## preprocessor operator in c?
Explain what is dynamic data structure?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
What is a built-in function in C?
What is difference between arrays and pointers?
How many types of functions are there in c?
What does double pointer mean in c?
What does 3 mean in texting?
Can a pointer point to null?
What is linear search?
Does c have class?
What is a constant and types of constants in c?
Explain how does free() know explain how much memory to release?
What does %p mean c?
Explain what is wrong with this program statement? Void = 10;