Skip to content

Instantly share code, notes, and snippets.

Created February 18, 2018 11:18
void func(int& param)
{
static int x = 0;
std::cout << "Value is " << x << '\n';
++x;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment