Think of it as Array that has 1 element
new feature in C++
- arg1 must be integer type, is passed by reference
- arg2 must be integer type, is passed by value
- arg3 must be double type, is passed by reference
Two ways of usage
Operator
- address of variable when use variable
Type
- define reference type variable
- 한번 되면 바뀔 수 없다
변수 alias이므로 자주 메모리 할당 필요없이 변수명만 바꿔주는 동작
There shall be no references to references, no arrays of references, and no pointers to references