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
Can 'this' pointer by used in the constructor?
What is selection sort in c?
What is difference between function overloading and operator overloading?
What are pragmas and what are they good for?
What is header file definition?
Can math operations be performed on a void pointer?
How many main () function we can have in a project?
Can we change the value of static variable in c?
List a few unconditional control statement in c.
What does sizeof function do?
What is c preprocessor mean?
write a c program to find the sum of five entered numbers using an array named number
What is meant by 'bit masking'?
Why should I use standard library functions instead of writing my own?
What are the different properties of variable number of arguments?