#include <iostream>
using namespace std;
int main() {
int a = 6; //수
int* b; //위치 - b는 자체로 주소를 나타낸다
int** c;
int*** d;
b = &a;
c = &b;
d = &c;
cout << "a 값 " << a << endl;
cout << "&a 값 " << &a << endl << endl;
cout << "b 값 " << b << endl;
cout << "&b 값 " << &b << endl;
cout << "*b 값 " << *b << endl;
cout << "&*b 값 " << &*b << endl << endl;
cout << "c 값 " << c << endl;
cout << "&c 값 " << &c << endl;
cout << "*c 값 " << *c << endl;
cout << "&*c 값 " << &*c << endl;
cout << "**c 값 " << **c << endl;
cout << "&**c 값 " << &**c << endl << endl;
cout << "d 값 " << d << endl;
cout << "&d 값 " << &d << endl;
cout << "*d 값 " << *d << endl;
cout << "&*d 값 " << &*d << endl;
cout << "**d 값 " << **d << endl;
cout << "&**d 값 " << &**d << endl;
cout << "***d 값 " << ***d << endl;
cout << "&***d 값 " << &***d << endl;
int x = 1;
int y;
y = x;
//메모리를 각각 2개씩 사용 크기 같음
int z = 1;
int* n;
n = &z;
//메모리는 z만 int형의 크기를 가지고있고
//n은 그 z의 메모리를 참조하여 주소값을 가지고 있다.
}