Under the declaration,
int n = 10;
which of the following loop constructs executes statement n times?
Consider the following code fragment.
bool b = false; int f( int x ) { ... } cout << f(b) << endl;
Which of the following is true?
The "maximal munch rule" for compilers is to read as many characters as can possibly be assembled into a meaningful syntactic construct. Consider the following code fragment.
int a = 5; int b = 10; cout << (a+++b) << " "; cout << a << " " << b << endl;
If the C++ compiler follows the maximal munch rule, what is printed as a result of the code fragment?