Introduction

1.5 - Comments


The // characters start a comment which extends until the end of the line. The program ignores the comment, their purpose is for explaining the code to a human reader.

// This line is a comment.

Task

Comment out line no. 6 Please comment out this line.

  • Put // at the start of line no. 6.
#include <iostream> int main() { // This line is a comment. Please comment out this line. std::cout << "This however is not a comment." << std::endl; }