VARIABLE AND COMMENTS IN C++.

 VARIABLES AND COMMENTS IN C++.

What are Variables -> Variable are container to store value or our data.

                                    ex-> integer(int), float, char etc..

What are comments -> A human readable text in the source code, which is ignored by compiler.

SYNTAX FOR DECLARING VARIABLE IN C++.

data_type  variablel_name = value.

ex-> int a = 3;

#include<iostream>

// Single line comment

/*
this is
a multiline
comment */

using namespace std;
 int main() {
 
 int A = 3;
 float B = 3.3;

 cout<< "hello bro\n"<< A << B;
return 0;
}

Comments