#include <iostream>
using namespace std;

int postincremento(int & i) {

   int anterior = i;

   i = i + 1;

   return anterior;

}

int preincremento(int & i) {

   i = i + 1;

   return i;
   
}

int main() {

   int i, j;

   i = 5;
   
   j = postincremento(i); // Equivale a j = i++

   cout << "i = " << i << "\t" << "j = " << j << endl;
   
   j = preincremento(i); // Equivale a j = ++i

   cout << "i = " << i << "\t" << "j = " << j << endl;

}