<<< Solution: use date as a variable     Index     C++ program fundamentals >>>

8. Fundamental properties of built-in types


  • Size:
    
     char   ·
     
     short  ··
     
     int    ····
     
     double ········
     
  • Operations:
    int    ····
     
            +  addition
     
            -  subtraction
             
            *  multiplication
             
            /  division
             
            %  modulus
  • Size and behavior define what the type is.

  • Type determines operations.

  • Each arithmetic operation defined for integer is like anonymous, in-line function.


<<< Solution: use date as a variable     Index     C++ program fundamentals >>>