-
[c++] Reference vs Pointer아무거나적어~ 2022. 6. 27. 17:57
- A pointer can be re-assigned any number of times while a reference cannot be re-assigned after binding.
- Pointers can point nowhere (NULL), whereas a reference always refers to an object.
- You can't take the address of a reference like you can with pointers.
- There's no "reference arithmetic" (but you can take the address of an object pointed by a reference and do pointer arithmetic on it as in &obj + 5).
'아무거나적어~' 카테고리의 다른 글
Colab 단축키 (0) 2022.07.06 한글 자음 모음 분리되는 문제 해결 방법 (0) 2022.06.29 백준 그룹 초대 자동화 코드 (0) 2022.03.13 아아아아아아아아아아아아아아아아아앙아아아아앙 (0) 2022.02.01 바다사자, 파이참 단축키(clion, pycharm shortcut, vscode ver.) (0) 2022.01.29