Just curious, do objects declared in inline functions go out of scope after the function ends? For example:
Code:inline int* func() { int temp = 0; return &temp; } int main() { int myInt = 100; myInt = *func(); //Will myInt == 0, or did temp go out of scope? return 0; }



LinkBack URL
About LinkBacks


