Skip to content

Instantly share code, notes, and snippets.

@TonnyXu
Created February 20, 2011 04:33
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 TonnyXu/835697 to your computer and use it in GitHub Desktop.
Save TonnyXu/835697 to your computer and use it in GitHub Desktop.
#include <iostream>
int main (int argc, char * const argv[]) {
int i = 6;
std::cout << i++ << std::endl;
int j = i++;
std::cout << j << std::endl;
int p = 7;
std::cout << ++p << std::endl;
int q = ++p;
std::cout << q << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment