EXERCISES SECTION 1.3
Exercise 1.7: Compile a programthat has incorrectly nested comments.
Exercise 1.8: Indicate which, if any, of the following output statements are legal:
- std::cout << "/*";
- std::cout << "*/";
- std::cout << /* "*/" */;
- std::cout << /* "*/" /* "/*" */;
After you’ve predicted what will happen, test your answers by compiling a program with each of these statements. Correct any errors you encounter.