C++ Single Line Comments
// This is a single-line comment in C++. It is used to add comments or notes to the code. The compiler ignores anything after // on the same line.
Example:
int main() {
int x = 5; // This is a single-line comment
return 0;
}