C++ Arithmetic Operator Increment and Decrement Operators

Description

C++ Arithmetic Operator Increment and Decrement Operators

#include <iostream> 
  
using namespace std; 
  
int main(int argc, char *argv [])
{ 
        int value = 0; 
        cout << value << endl; 
        cout << value++ << endl; 
        cout << ++value << endl; 
        cout << value-- << endl; 
        cout << --value << endl; 
        return 0; 
}



PreviousNext

Related