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 different types of control structures in programming?
What are categories used for in c?
How can I call fortran?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Explain how do you use a pointer to a function?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
In C programming, what command or code can be used to determine if a number of odd or even?
What is %d called in c?
What is scope and lifetime of a variable in c?
What will be the outcome of the following conditional statement if the value of variable s is 10?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Why functions are used in c?
What does s c mean on snapchat?
Explain what are preprocessor directives?
Explain is it better to bitshift a value than to multiply by 2?