티스토리 뷰
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
- java
- ... in Javascript
- compareTo()
- repeat()
- math.max
- Javascript Algorithm
- string class in java
- 프로그래머스 알고리즘
- hackerrank javascript solution
- 프로그래머스
- 알고리즘
- HackerRank Algorithm
- 프로그래머스 알고리즘문제
- HashMap
- code refactoring
- easy algorithm
- Collection Framework
- Object type casting
- equals()
- C++
- hackerrank solution
- algorithm
- spring boot application
- easy javascript algorithm
- substring()
- javascript
- hackerrank
- math.abs
- hackerrank javascript
- rest parameter
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함