Skip to content

Instantly share code, notes, and snippets.

@michaels123
Created September 21, 2018 13:28
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 michaels123/4722b77c99bc9dad69c43727b63833a0 to your computer and use it in GitHub Desktop.
Save michaels123/4722b77c99bc9dad69c43727b63833a0 to your computer and use it in GitHub Desktop.
#include <iostream>
int main ()
{
int a = 5, b, a1 = 5, b1;
b = a++;
std::cout << "a: " << a << std::endl;
std::cout << "b: " << b << std::endl;
b1 = ++a1;
std::cout << "a1: " << a1 << std::endl;
std::cout << "b1: " << b1 << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment