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

u should not assign a negative value to unsigned int! b'coz
it has only +ve values 0to2^15-1..

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are examples of structures?

591


What is malloc() function?

632


Explain the concept and use of type void.

623


What is the difference between pure virtual function and virtual function?

643


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2000






How can I rethow can I return a sequence of random numbers which dont repeat at all?

700


When a c file is executed there are many files that are automatically opened what are they files?

589


Differentiate between the = symbol and == symbol?

708


What is pointers in c with example?

575


Explain the difference between strcpy() and memcpy() function?

588


How can this be legal c?

648


Is fortran still used today?

597


Difference between constant pointer and pointer to a constant.

607


Explain the array representation of a binary tree in C.

724


What is build process in c?

643