Comments in c++




This video tutorial explains the comments in c++.
you will learn what are comments,what types of comments are there in c++, how to use comments , what are single line comments,what are multi line comments or paired comments, when to use comments in c++ in detail.
source code for this tutorial

#include <iostream>

using namespace std;

int main()
{
/*
This is a
multi line
comment

*/
cout << "this is about comments "<<endl; // this is single line comment
cout << "there are two types of comments available"<<endl;
cout << "comments help human readers";
return 0;
}

 
Back To Top