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
What are examples of structures?
What is malloc() function?
Explain the concept and use of type void.
What is the difference between pure virtual function and virtual function?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
How can I rethow can I return a sequence of random numbers which dont repeat at all?
When a c file is executed there are many files that are automatically opened what are they files?
Differentiate between the = symbol and == symbol?
What is pointers in c with example?
Explain the difference between strcpy() and memcpy() function?
How can this be legal c?
Is fortran still used today?
Difference between constant pointer and pointer to a constant.
Explain the array representation of a binary tree in C.
What is build process in c?