Operations And Operands In C

Opreasions and operands



OPERATORS:   

                                      For example in this expression 4 + 5 = 9 . Here 4 and 5  are called operands and + is called operators . C language supports different operators which are given below.

1:   Arithmetic Operators. 
2:   Rational Operators.
3:   Logical Operators.


Arithmetic Operators: 

                                  These type of operators are used to perform mathemetical operations.Like addition ,multiplication,division etc.





Operators in c


  1.  Practice :
          #include <stdio.h>
         #include <conio.h>

                        int main()
{

                     int a = 10 , b = 15 ;
              printf (" Addition Of Two numbers Is",a+b);
             getch();
 }


2:  Practice :

  #include <stdio.h>
         #include <conio.h>

                        int main()
{         
                   int a = 10 , b = 15 ;
       printf (" Addition ",a+b);
       printf(" Subtraction", a-b);
       printf(" Multiplication ", a*b);
       printf(" Division ", a/b);
               getch();
                                                  }




Post a Comment