Skip to main content

1.12) Exercise 2


  1. Edit hello.cpp again. Use // to add a comment line at the start of the file and save it, then check that program compiles and runs exactly as it did before.
  2. Alter the comment so that it uses the /* ... */ syntax. Save the file, then check it compiles and runs exactly as it did before.
  3. Modify hello.cpp by adding or removing blank lines and by increasing or decreasing the indentation of lines inside main. Satisfy yourself that these changes have no effect on compilation or execution of the program.