Skip to content

Instantly share code, notes, and snippets.

@SeanPlusPlus
Created April 19, 2011 23:33
Show Gist options
  • Save SeanPlusPlus/929983 to your computer and use it in GitHub Desktop.
Save SeanPlusPlus/929983 to your computer and use it in GitHub Desktop.
i_POSTFIX.cpp
#include <iostream>
using namespace std;
int main()
{
int i = 10;
cout << "i: " << i << endl;
cout << "i++: " << i++ << endl;
return 0;
}
/* SAMPLE OUTPUT:
*
* i: 10
* i++: 10
*
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment