티스토리 뷰
Reference in C++
- the lvalue can only be assigned to Reference
- Reference is alias which is another name of existing variable
- Pointer has a different address but the Reference has the same address with the variable.
- Address of the variable does not need to be copied
Example code
Result
'C++' 카테고리의 다른 글
Constructor and Destructor in C++ (0) | 2018.11.06 |
---|---|
Encapsulation (getters and setters) in C++ (0) | 2018.11.06 |
Class and Object in C++ (0) | 2018.11.06 |
Dynamic Allocation in C++ (0) | 2018.11.03 |
Function Overloading in C++ with example code (0) | 2018.11.03 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- spring boot application
- 프로그래머스 알고리즘문제
- equals()
- hackerrank javascript solution
- compareTo()
- hackerrank solution
- Javascript Algorithm
- substring()
- 알고리즘
- code refactoring
- hackerrank
- hackerrank javascript
- rest parameter
- math.max
- 프로그래머스
- java
- algorithm
- HashMap
- ... in Javascript
- easy javascript algorithm
- easy algorithm
- math.abs
- Collection Framework
- C++
- string class in java
- javascript
- HackerRank Algorithm
- repeat()
- Object type casting
- 프로그래머스 알고리즘
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
글 보관함