Visual 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 -

Examples

Visual C++ .NET

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

Visual C++ .NET

Other pieces of example codes:
// y = -25
         // a = false
       // a = true 
         // a = true
          // y = 387850941.35821074
  // z = 15
Languages: en hu cz sk