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 / subbu
this program gives an error that comparison between signed
and unsigned int
Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
What are void pointers in c?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
How can I convert a number to a string?
What are header files? What are their uses?
write a c program to find the sum of five entered numbers using an array named number
How to create struct variables?
What does c in a circle mean?
What is the difference between memcpy and memmove?
Is boolean a datatype in c?
Explain how are 16- and 32-bit numbers stored?
What is use of integral promotions in c?
Why header files are used?
What are keywords in c with examples?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
How pointers are declared?