answersLogoWhite

0

Comments in C++ always begin with // and extend to the end of the line. Multi-line comments must have // on each line. Any text that follows this symbol up to the newline character is completely ignored by the compiler.

You can also use C-style comments, where multi-line comments can be enclosed within opening /* and closing */ markers. This type of comment can also be used to insert a short comment between C++ expressions upon the same line. Again, the compiler ignores everything, from the opening /* marker up to the closing */ marker.

All comments are stripped from your source during preprocessing, at the point where macros are processed (also known as precompilation). The resulting intermediate file is the file that is actually compiled.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is definition of employee code in c plus plus?

la la land


What is the difference between declaration and a definition in c plus plus?

A declaration is an incomplete type whereas a definition is a complete type.


How do you import a whole c plus plus class from a dynamic library?

You do not import classes. Classes are the definition of a type, and if you link to a library then all of its types are made available to your program. All you have to do is instantiate objects from those types: thus there is nothing to import.


Do I need types of design patterns in c plus plus?

No.


Why you use small letter in c or c plus plus programming language?

I assume you mean using lower case letters. By convention, C and C++ standard libraries use lower-case naming conventions. This makes it easy to identify functions and types that belong to the standard library. When defining your own types, a leading capital is preferred. All capitals typically denotes a macro definition.


How is c plus plus built?

C++ object oriented programming (OOP) language and supports three kinds of object types 1) Fundamental Types. 2) Derived Types. 3) Class Types.


What is a primitive type variable in c plus plus?

same the types used in C. that is int...char...float...


What is the technical definition of architecture?

a squared plus b squared is c squared


Enumerate the types of selection constructs in c plus plus?

Selection constructs in C++if...elseswitch/caseconditional ternary operator (?:)


Types of sort in c plus plus?

There's only one type of sort in C++; std::sort. If you want other types you'll need to write your own.


What are the three variable types largest to smallest in C plus plus?

doginert jesret


What are the two types of constant in c plus plus?

Constant data and constant functions.