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 / subbu

this program gives an error that comparison between signed
and unsigned int

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does int main () mean?

776


difference between native and cross compilers

1881


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

771


Write a simple code fragment that will check if a number is positive or negative.

918


What is c++ used for today?

879


What is the best way to store flag values in a program?

795


What are the string functions? List some string functions available in c.

811


What is queue in c?

765


What is pointers in c with example?

802


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

838


Can a file other than a .h file be included with #include?

881


Is the exit() function same as the return statement? Explain.

860


Explain the term printf() and scanf() used in c language?

832


What is the function of volatile in c language?

879


can anyone suggest some site name..where i can get some good data structure puzzles???

1854