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