What will the following program print on screen?int age = 0;if (age = 40)   printf("Happy Birthday!");else   printf("Sorry");

A. Happy Birthday!
B. Sorry
C. Runtime error.
D. Nothing; the program will not compile.


Answer: A

Computer Science & Information Technology

You might also like to view...

Which of the following function declarations are illegal?

``` a. void t1(int x, int y = 0, int z); b. void t4(int x = 0, int y = 0, int z = 0); c. void t2(int x = 0, int y = 0, int z); d. void t3(int x, int y = 0, int z = 0); e. a and c ```

Computer Science & Information Technology

The Secure Shell program is a command interpreter that keeps no history of its actions for others to discover, hence its name.

a. true b. false

Computer Science & Information Technology

A knowledge and skills test is a tool support managers use when selecting new employees; it measures an applicant's understanding and problem-solving ability.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What is the data type of the following function prototype's parameter variable?

int myFunction(double); a. int b. double c. void d. cannot tell from the prototype

Computer Science & Information Technology