티스토리 뷰
#include? ? f2(void) ? ? static int a[3][4] = { 1,2,3,4,5,6,7,8,9,10,11,12 }; return &a; } ? ? f1(void) ? ? return f2()[0]; } void main() { printf("%d\n", f1 ??); system("pause"); } /* // a -> int [3][4] // &a -> int (*)[3][4] int (*f2(void))[3][4]{ static int a[3][4] = { 1,2,3,4,5,6,7,8,9,10,11,12 }; return &a; } // f2() -> &a 리턴 // f2()[0] -> a int (*f1(void))[4]{ return f2()[0]; } // f1() -> f2()[0] -> &a[0] -> a // f1()[1][2] -> a[1][2] void main() { printf("%d\n", f1()[1][2]); system("pause"); } */
'Coding > C' 카테고리의 다른 글
함수 포인터 인자와 리턴 - 5 (0) | 2018.06.09 |
---|---|
함수 포인터 인자와 리턴 - 4 (0) | 2018.06.09 |
함수 포인터 인자와 리턴 - 2 (0) | 2018.06.09 |
함수 포인터 인자와 리턴 (0) | 2018.06.09 |
함수 리턴 및 메모리 접근 (0) | 2018.05.28 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- OpenCV
- canny
- pyrDown
- high pass filter
- dilation
- erosion
- 캐니 엣지
- Line Detection
- canny operator
- pyrUp
- mean filter
- black top hat
- Filter
- Sobel
- median filter
- top hat
- upsampling
- bilateral filter
- adaptive thresholding
- Low pass filter
- gradient
- morphological operation
- segmentation
- hough transform
- laplacian of gaussian
- equalizing
- direction detection
- difference of gaussian
- 영상처리
- morphology
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함