summaryrefslogblamecommitdiff
path: root/tests/exec/prepost2.cpp
blob: dcc0181dbdb4472077c4d6e83dbf2e5e409607ca (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                     
#include <iostream>

int main() {
  int x = 41;
  std::cout << "x = " << x << "\n";
  std::cout << "x = " << x++ << "\n";
  std::cout << "x = " << ++x << "\n";
  std::cout << "x = " << x-- << "\n";
  std::cout << "x = " << --x << "\n";
  std::cout << "x = " << x << "\n";
}