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
Explain setjmp()?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Which node is more powerful and can handle local information processing or graphics processing?
Distinguish between actual and formal arguments.
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is c variable?
What is the difference between typedef struct and struct?
What is logical error?
What is the difference between if else and switchstatement
Why shouldn’t I start variable names with underscores?
Explain the difference between ++u and u++?
What is the difference between exit() and _exit() function?
What is extern c used for?
What does the error 'Null Pointer Assignment' mean and what causes this error?