What will the following program print on screen?
Int age = 40;
If (age = 40)
Printf("Happy Birthday!") ;
Else
Printf("Sorry") ;
A) Happy Birthday!
B) Sorry
C) Runtime error.
D) Nothing; the program will not compile.
Correct Answer:
Verified
Q30: When the _ operator is used with
Q31: The _ operator is used to change
Q32: Which of the following operators has right
Q33: A _ statement is one or more
Q34: What will the following program print on
Q36: What will the following program print on
Q37: What will the following program print on
Q38: The use of _ in a C
Q39: Including one or more if-else statements within
Q40: A _ statement is a specialized selection
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents