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 / bishnu agrawal
it is an error bcoz u can assing a signed value to unsigned variable so answer is null
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is a pragma?
How do you list files in a directory?
What is malloc calloc and realloc in c?
How are variables declared in c?
Explain 'bus error'?
please send me the code for multiplying sparse matrix using c
Tell me is null always defined as 0(zero)?
Why structure is used in c?
What is oops c?
How can I access an I o board directly?
What does %p mean?
Is the exit() function same as the return statement? Explain.
List the difference between a "copy constructor" and a "assignment operator"?
What is %s and %d in c?
is it possible to create your own header files?