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 are the types of i/o functions?
Why n++ execute faster than n+1 ?
What does c mean in basketball?
What are the advantages of c language?
Are the expressions * ptr ++ and ++ * ptr same?
Can include files be nested? How many levels deep can include files be nested?
Tell us something about keyword 'auto'.
What is the difference between a function and a method in c?
How to establish connection with oracle database software from c language?
Is null a keyword in c?
Which header file is essential for using strcmp function?
Where static variables are stored in c?
What is the concatenation operator?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What is the size of enum in bytes?