Skip to content

Instantly share code, notes, and snippets.

@sax1johno
Created December 1, 2015 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sax1johno/feb17e4989edb00a65f3 to your computer and use it in GitHub Desktop.
Save sax1johno/feb17e4989edb00a65f3 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main() {
cout << "x postfix = " << x++ << endl;
cout << "x after postfix " << x << endl;
cout << "x prefix = " << ++x << endl;
cout << "x after prefix " << x << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment