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


Please Help Members By Posting Answers For Below Questions

What are the different types of control structures in programming?

656


What are categories used for in c?

560


How can I call fortran?

640


Write a code to determine the total number of stops an elevator would take to serve N number of people.

725


Explain how do you use a pointer to a function?

636






What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

670


In C programming, what command or code can be used to determine if a number of odd or even?

618


What is %d called in c?

752


What is scope and lifetime of a variable in c?

570


What will be the outcome of the following conditional statement if the value of variable s is 10?

755


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1903


Why functions are used in c?

580


What does s c mean on snapchat?

579


Explain what are preprocessor directives?

623


Explain is it better to bitshift a value than to multiply by 2?

709