Search This Blog

Thursday, August 18, 2016

HOW TO PERFORM CALCULATION USING ARITHMETIC EXPRESSION

        
            
               
                   
                 HOW TO PERFORM CALCULATION USING             ARITHMETIC EXPRESSION


In C, programming the expression is very important role than it does in most other programming languages. That is why, C defines many more operators than do most other languages.


                                C defines these five arithmetic operators:

                       Operator                                         Meaning

                            +                                                 Addition
                            -                                                Subtraction
                            *                                              Multiplication  
                            /                                                  Division
                           %                                                Modulus 

[N.B: The +, - , / , and * operate with any of basic data types, but % used with integer types only ] 


 

No comments:

Post a Comment