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
- 프로그래머스
- 알고리즘
- 선그래프
- 알고리즘 스터디
- 자료구조
- 알고리즘스터디
- programmers
- Algorithm
- type hint
- 백준
- Selenium
- pandas
- aws jupyter notebook
- queue
- python
- NumPy
- 코딩테스트
- MySQL
- Stack
- Join
- Matplotlib
- 가상환경
- dataframe
- 데이터시각화
- 정보처리기사 c언어
- String Method
- 노마드코딩
- javascript
- openCV
- 파이썬
Archives
- Today
- Total
목록함수 주소 리턴 (1)
조금씩 꾸준히 완성을 향해
#include int f(int *i, int j); int main(void){ int x=10, y=20; printf("%d\n", f(&x, y)); printf("%d %d", x, y); } int f(int *i, int j){ *i += 5; return (2* *i + ++j); } // 51 // 15 20 #include int foo(int a, int *b); int main(){ int a=5; int b=3; int c=0; b = foo(a, &c); c = foo(b, &c); printf("a=%d b=%d c=%d", a, b, c); } int foo(int a, int *b){ int c; *b = a+1; c = a-1; return c; } // a=5 b=4 ..
기타 언어/C 언어
2023. 3. 26. 21:02