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
What is the difference between fread and fwrite function?
Is c object oriented?
what is ur strangth & weekness
What is f'n in math?
What is a char c?
What is meant by gets in c?
How to declare pointer variables?
What is c preprocessor mean?
There seem to be a few missing operators ..
What is storage class?
What is methods in c?
Can we add pointers together?
What is the purpose of sprintf?
What is a wrapper function in c?
Can you write the algorithm for Queue?