C++ comments can be used to prevent the execution of the statements or text in the source code. Whenever we want to ignore somthing from the execution in the source code, we use comments. Comments can also be used to explain complex code logic, so the other developers can understand the C++ code easily. There are two types of comments in C++ which are given below-
Single line comments:-
// This is single line comment
cout << "Hello Tutorials Logic!";
Multi line comments:-
/*
This is multi line comment
*/
cout << "Hello Tutorials Logic!";
C++ variables are the containers in the memory which holds the data value, which can be changed anytime.