반응형
1. https://blog.naver.com/tipsware/221498204578
%d, %ld, %lu 등
http://woogyun.tistory.com/391
http://secretroute.tistory.com/entry/1507051744
http://blog.naver.com/cristy82/20007269947
http://blog.naver.com/rasede/150076966887
[%s 사용법]
#define STR "1234567890"
printf("/%2s/\n", STR);
printf("/%20s/\n", STR);
printf("/%20.5s/\n", 1234.56);
printf("/%-20.5s/\n", 1234.56);}
(출력결과)
/1234567890/
/ 1234567890/
/ 12345/
/12345 /
[% 출력방법]
sprintf(tmp, "%%");
'language > C' 카테고리의 다른 글
stack, heap (0) | 2018.07.03 |
---|---|
소스 정적분석 툴 (0) | 2018.06.29 |
[C언어] open flag (0) | 2015.07.14 |
time 함수 (0) | 2015.04.21 |
C 언어와 C++ 언어에서 const 처리 (0) | 2015.03.16 |