|
안녕하세요
밑의 코딩을 보시면
int *ppointer=&thevalue;
ppointer = &thevalue;
식은 서로 다른데 왜 결과값은 똑같은지 궁금합니다.
즐거운 하루되세요
#include <iostream.h>
int main()
{
int thevalue=5;
int *ppointer=&thevalue;
cout << &thevalue<< endl;
cout << *ppointer<< endl;
cout << ppointer<< endl;
ppointer = &thevalue;
cout << &thevalue << endl;
cout << *ppointer << endl;
cout << ppointer << endl;
return 0;
}
|