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 / karthika
pass1 fail2
Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What is the difference between union and anonymous union?
What is the argument of a function in c?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Which is best linux os?
Why doesnt long int work?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Difference between macros and inline functions? Can a function be forced as inline?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is null in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Write a program to swap two numbers without using third variable in c?
How can you pass an array to a function by value?
explain what is a newline escape sequence?
How does struct work in c?
write a program fibonacci series and palindrome program in c