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


Please Help Members By Posting Answers For Below Questions

Can 'this' pointer by used in the constructor?

614


What is selection sort in c?

611


What is difference between function overloading and operator overloading?

661


What are pragmas and what are they good for?

577


What is header file definition?

571






Can math operations be performed on a void pointer?

589


How many main () function we can have in a project?

615


Can we change the value of static variable in c?

564


List a few unconditional control statement in c.

561


What does sizeof function do?

616


What is c preprocessor mean?

795


write a c program to find the sum of five entered numbers using an array named number

1618


What is meant by 'bit masking'?

888


Why should I use standard library functions instead of writing my own?

675


What are the different properties of variable number of arguments?

669