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 is malloc and calloc?

578


Do you know the difference between malloc() and calloc() function?

617


Explain how do I determine whether a character is numeric, alphabetic, and so on?

657


What are types of preprocessor in c?

624


Disadvantages of C language.

664






what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

681


What is define c?

577


Why is this loop always executing once?

619


Explain goto?

721


What type is sizeof?

588


Explain what is the benefit of using an enum rather than a #define constant?

728


How can you draw circles in C?

631


What does stand for?

601


Who is the founder of c language?

688


What is the use of bit field?

648