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 | 29 | 30 |
| 31 |
Tags
- 반복문
- function
- 배열
- Data Science
- 문자열
- Class
- assignment operator
- programming
- Pre-processing
- array
- predictive analysis
- Object Oriented Programming
- C++
- 티스토리챌린지
- 함수
- 오블완
- 알고리즘
- 포인터
- vscode
- 백준
- const
- pointer
- pass by reference
- Python
- OOP
- string
- baekjoon
- Deep Learning
- 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