
LANGUAGE: C++
CHALLENGE:
How many spaces printed out by this statement: cout << “how” << “now” << “brown” << “cow” << “?”;
SOLUTION:
0
CHALLENGE:
How many lines are printed out by this statement: cout << “abc\ndef\tghi\njkl” << endl << endl << “mno\npqr\n”;
SOLUTION:
6
Why is it six? I would think 3 because there’s two endl’s and one further line