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
- Selenium
- NumPy
- javascript
- programmers
- 자료구조
- 코딩테스트
- Stack
- 프로그래머스
- 노마드코딩
- Join
- 알고리즘스터디
- 데이터시각화
- pandas
- openCV
- 파이썬
- python
- dataframe
- type hint
- 정보처리기사 c언어
- Algorithm
- 백준
- Matplotlib
- 선그래프
- 알고리즘 스터디
- String Method
- 가상환경
- MySQL
- aws jupyter notebook
- 알고리즘
- queue
Archives
- Today
- Total
목록함수에 주소전달 (1)
조금씩 꾸준히 완성을 향해
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/KsMt5/btr5TnoLPkQ/0V6QkSkOz1SkiKuxob6q4K/img.png)
#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