Home Forums US Life 간단한 시뿔뿔 문제 간단한 시뿔뿔 문제 Name * Password * Email 1. 테스트1 변형 #include <iostream> using namespace std; int fun() // &를 제거함 { int x = 10; return x; } int main() { cout << “main: ” << fun() << endl; return 0; } 이건 제대로 결과가 나와요. 함수안에 로컬변수를 쓴건데...이건 소멸되기전에 다른주소로 카피/저장된걸로 봐야될것 같기도 한데? I agree to the terms of service Comment