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
- 파이썬
- 알고리즘스터디
- queue
- aws jupyter notebook
- 선그래프
- pandas
- String Method
- type hint
- python
- 알고리즘
- MySQL
- 자료구조
- Stack
- Algorithm
- Join
- 노마드코딩
- NumPy
- 데이터시각화
- 프로그래머스
- 가상환경
- 백준
- dataframe
- javascript
- Matplotlib
- openCV
- programmers
- 알고리즘 스터디
- 정보처리기사 c언어
- 코딩테스트
- Selenium
Archives
- Today
- Total
목록c언어 printf 순서 (1)
조금씩 꾸준히 완성을 향해
[C 언어] printf 함수 & 단항 연산자(++, --) 출력 순서
printf 함수 & 단항 연산자(++, --) printf()함수 - 뒤에서부터 연산을 시작!! 단항 연산자가 변수 앞에 있을 경우(++i, --i) - 최종 연산이 끝난 후의 i의 값을 참조 = printf 연산을 하는 시점의 i의 값 참조 ▶ printf & ++i #include int main() { int i = 5; printf("%d, %d, %d, %d", i++, ++i, i++, ++i); } // 8, 9, 6, 9 ▶ printf & --i #include int main() { int i = 5; printf("%d, %d, %d, %d", --i, i--, i--, --i); } // 1, 3, 4, 1 ▶ printf & i ※ 단항 연사자가 없는 그냥 i의 경우에도 모든 연..
기타 언어/C 언어
2023. 3. 29. 17:48