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
Is register a keyword in c?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
which is an algorithm for sorting in a growing Lexicographic order
Why c language?
What is wrong with this statement? Myname = 'robin';
why return type of main is not necessary in linux
What are multidimensional arrays?
Why is c used in embedded systems?
Is c dynamically typed?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What is a program flowchart?
What is c language used for?
what are the 10 different models of writing an addition program in C language?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
develop algorithms to add polynomials (i) in one variable