#include <iostream> using namespace std; int &fun() { static int x = 10; / x++; return x; } int main() { int *ptr=&fun(); int *ptr1=&fun(); printf("%d %d \t %d %d",ptr,ptr1,*ptr,*ptr1); return 0; }
Standard input is empty
prog.cpp: In function 'int& fun()': prog.cpp:7:2: error: expected primary-expression before '/' token / ^
Standard output is empty