What will the following program print on screen?int tenure = -5;if (tenure + 5)   printf("Congratulations!");else   printf("Sorry");

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


Answer: B

Computer Science & Information Technology

You might also like to view...

A two-dimensional array resembles a table in that the variables (elements) are in rows and columns.

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

Computer Science & Information Technology

When a dynamic array with a class for a base type is declared, which constructor is called?

a. the copy constructor b. the destructor c. the default constructor d. an explicit constructor

Computer Science & Information Technology

The C++ code template is called the ______________________

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

You use ____ to create interactive projects in Flash, such as controlling the movie's playback and making buttons interactive in the Flash Player.

A. ActionScript B. Perl C. JavaScript D. Both a and c

Computer Science & Information Technology