int a = b;            // is setting a's VALUE to b's VALUE

 int *a = &b;        // is setting a's VALUE to the ADDRESS of b

 int &a = b;          // is setting a's ADDRESS to b's ADDRESS. so (a is a reference to b)

 

'Programming > C,C++' 카테고리의 다른 글

Multithreading Applications in Win32  (0) 2017.01.05
multithread in windows  (0) 2017.01.04
scanf 주의사항  (0) 2017.01.04
scanf_s  (0) 2017.01.04
Hello, World  (0) 2017.01.03
Posted by 루나s
,