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
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)
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
The C++ code template
Fill in the blank(s) with the appropriate word(s).
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