adplus-dvertising
frame-decoration

Question

What is the output of the C Program?
int main()
{
    if( 10 < 9 )
        printf("Hurray..\n");
    else if(4 > 2)
        printf("England");

    return 0;
}

a.

England

b.

Hurray..

c.

Compiler error for missing else

d.

None of the above

Posted under C Programming

Answer: (a).England

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the C Program?

Similar Questions

Discover Related MCQs

Q. What are Nibble, Word and Byte in computer language?

Q. Choose correct representation of Decimal number in Binary.

Q. What is the operator used to make 1's One's compliment?

Q. What is the result of 0110 & 1100?

Q. What is the output of Bitwise OR operation | on (0110 | 1100)?

Q. What is the output of Exclusive OR ^ operator on 0110^1000?

Q. What is the output of Left Shift Operator << on (00011000<<2)?

Q. What is the result of Right Shift Operator >> on (00110000>>2)?

Q. Choose correct statement about Left Shift Operator << .

Q. Choose a correct statement about Right Shift Operator >> .

Q. What is a Single Operand Operator below?

Q. What is the Bitwise operator used to seta particular bit value to 1?

Q. What is the Bitwise operator used set a particular bit to Zero 0?

Q. Which is Bit Toggling operator below?

Q. Which is the format specifier used to prefix 0x and print a number in hexadecimal notation?

Q. Left Shift operation is equivalent to

Q. Right Shift operation >> is equivalent to

Q. What is the minimum and maximum values in Octal Number System?

Q. What number system is not understood by C language compiler directly?

Q. Choose a correct statement about C Bitwise operators.