Basic elements of C++
0⃣ Reserved words
A reserved word is a word that cannot be used as an identifier, such as the name of a variable, function, or label
@c_programming_tut
0⃣ Reserved words
A reserved word is a word that cannot be used as an identifier, such as the name of a variable, function, or label
@c_programming_tut
1⃣ Identifier
is a name used to identify a variable, function, class, module, or any other user-defined item.
📌Start with a letter or underscore
📌Consist only of alpha-numeric symbols or the underscore symbol _
📌Not be a reserved word
@c_programming_tut
is a name used to identify a variable, function, class, module, or any other user-defined item.
📌Start with a letter or underscore
📌Consist only of alpha-numeric symbols or the underscore symbol _
📌Not be a reserved word
@c_programming_tut
2⃣ Comments
a piece of descriptive text which explains some aspect of a program.
Comments can be used to explain C++ code, and to make it more readable. It can also be used to prevent execution when testing alternative code.
✅Single-line comments //
✅Multi-line comments /* */
@c_programming_tut
a piece of descriptive text which explains some aspect of a program.
Comments can be used to explain C++ code, and to make it more readable. It can also be used to prevent execution when testing alternative code.
✅Single-line comments //
✅Multi-line comments /* */
@c_programming_tut
Operators
Operators in C++, An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations.
📌Operators in C++ can be classified into 7 types
@c_programming_tut
Operators in C++, An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations.
📌Operators in C++ can be classified into 7 types
@c_programming_tut