C++ - single line comment: //

in the case of single-line comments from start tags to the end of the line, each character is interpreted as a comment. these characters will not be evaluated.

//

Description

//
Used keywords: //
Data:
  • text -
compatible programing languages:
Visual C++ .NET

Examples

C++

single line comment the possible of use:
x = 5 * y; // x = xy
// y = 123;
if (x > 0) // x == true
   x=5;

C++

Other pieces of example codes:
        // 20
        //   true
       // a = true 
           // x = 5
          // b = true
         // x = 10
Languages: en hu cz sk