Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- pass by reference
- array
- Data Science
- 배열
- 티스토리챌린지
- 백준
- Object Oriented Programming
- 오블완
- C++
- 반복문
- 파이썬
- OOP
- pointer
- baekjoon
- Python
- Pre-processing
- Class
- const
- 알고리즘
- function
- programming
- 포인터
- Deep Learning
- vscode
- assignment operator
- string
- 함수
- predictive analysis
- 문자열
- raw data
Archives
- Today
- Total
목록increment operator (1)
Channi Studies
[C++] Increment/Decrement Operator (증감연산자) ++, --
증감 연산자는 대상 값을 1씩 증가 혹은 감소시킵니다. (variable++: variable = variable + 1) (variable--: variable = variable - 1) 로 이해하면 좋습니다. 증감 연산자는 정수, 실수, 포인터 변수에서 사용 가능합니다. 증감 연산자에는 두가지 notation이 있습니다. Prefix notation: ++num Postfix notation: num++ 각각 증감 연산을 statement 이전에 적용할 지, statement 실행 이후에 적용할지를 결정합니다. // 증감 연산자 사용 예시 #include using namespace std; int main(){ int counter {10}; cout
C++/기타
2023. 12. 7. 12:10