#include <iostream> using namespace std; int & func() { static int temp = 1; cout << temp << endl; return temp; } int main() { func() = 2; func(); return 0; }
No comments:
Post a Comment