int func(int a){
return true;
}
int main(void){
int* pHandle = new int;
func((int)(*pHandle));
return true;
}
linux cint로 수행하면 segment fault error발생
vc++로 compile하면 uninitialized에 대한 warning발생
'Papers > programming' 카테고리의 다른 글
struct pointer (0) | 2007.06.12 |
---|---|
enum (0) | 2007.05.16 |
typedef, callback (0) | 2007.03.17 |
소멸자를 가상함수로 쓰는 이유 (0) | 2007.02.12 |
function pointer (0) | 2006.10.10 |