티스토리 뷰
staticFunc1.cpp
#includestaticFunc2.cpp#include extern void func(void); static int sqr(int a) { return a*a; } void main(void) { func(); printf("%d\n", sqr(3)); system("pause"); }
#includestatic int sqr(int a) { return a * a * 2; } void func(void) { printf("%d\n", sqr(3)); }
함수에도 static이 적용된다. 출력은 18 9
각각의 파일에 static int sqr(int a) 함수가 있기 때문에 그 함수을 실행한다
'Coding > C' 카테고리의 다른 글
little endian과 big endian (0) | 2018.05.22 |
---|---|
포인터의 연산 (0) | 2018.05.22 |
pointer 와 선치, 후치 연산자 (0) | 2018.05.20 |
static 및 extern // case02 (0) | 2018.05.20 |
static 및 extern // case01 (0) | 2018.05.20 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Low pass filter
- erosion
- Sobel
- high pass filter
- median filter
- gradient
- mean filter
- direction detection
- morphological operation
- upsampling
- Filter
- canny operator
- segmentation
- canny
- pyrDown
- 캐니 엣지
- adaptive thresholding
- laplacian of gaussian
- dilation
- pyrUp
- OpenCV
- equalizing
- bilateral filter
- black top hat
- top hat
- hough transform
- morphology
- Line Detection
- difference of gaussian
- 영상처리
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함