Using comments to add description to the code - C++ Language Basics

C++ examples for Language Basics:Hello World

Description

Using comments to add description to the code

Demo Code

#include <iostream>             //preprocessor directive
using namespace std;            //"using" directive
int main()                      //function name "main"
{                            //start function body
    cout << "this is a test\n";  //statement
    return 0;                    //statement
}                            //end function body

Result


Related Tutorials