Skip to content

Instantly share code, notes, and snippets.

@sh4869
Created November 17, 2016 14:23
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 sh4869/ae43d1cd8d3c11451c2748f1799a0688 to your computer and use it in GitHub Desktop.
Save sh4869/ae43d1cd8d3c11451c2748f1799a0688 to your computer and use it in GitHub Desktop.
#include <iostream>
int main(){
int i1,i2;
i1 = i2 = 0;
std::cout << i1++ << std::endl;
std::cout << ++i2 << std::endl;
i1 = i2 = 0;
std::cout << i1++ + ++i2 + ++i1 + i1++ << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment