C Basic Theory.

               NOTES  FOR  C  & C++

KEYWORD:-

 keyword are the reserved word whose meaning is fixed and use for specific purpose.

Eg:- int ,float ,void double etc.

Note:-  All keyword are return in lower case letter.

TOKEN:- smallest unit from a program is known as token.

FLOW CHART:- diagrammatic representative of program is known as flow chart.

OPERATOR:- it defines action over data.

                         TYPES OF OPERATOR

                                                                      -------------------------------------------------------------------------

1:- ARITHMErTICAL OPERATOR

addition substraction multiplication division & modulus is known as arithmetical operator.

2:-RELATIONAL OPERATOR

 the operator used to do comparision are called relational operator.in some expression it is required to compare the variable or constant.

Eg:- <,>,<=,>=,!=,==

3:- LOGICAL OPERATOR

 the operator which perform on logical value that is true or false is called logical operator.

Eg:- logical And(&&)

        Logical or(||)

        Logical not(!)

4:- CONDITIONAL OPERATOR

 A ternary operator requires three operands . the conditional operator is used to replace if else logic situation.

Eg:-m=a>b?a:b

5:- UNARY OPERATOR

 ++ increment operator

      Post increment & pre increment

--deccrement operator

Post decrement & pre decrement

6:- COMMA OPERATOR

int a=2,b=3,x=0

7:-EQUALITY OPERATOR

         == 

             !=

8:- SIZE OPERATOR

9:-ASSINMENT OPERATOR

int a;

   A=5;


Comments

Popular Posts