1.getchar() returns EOF(-1) when it encounters end of file
2.<ctype.h>has the function char tolower(char)
3. in printf:a minus sign specifies left adjustment of the convertde argument
4. control an output width using an int variable
5. int sprintf("char * string,char * format,arg1,arg2…);
(PS:format is the standardized string,such as %.2s…)
6.stdarg.h
7.using a getline,then try different formats to scanf when the type of the input is unclear
8.ungetc(int c,FILE*fp)
C语言的细节问题汇总
最新推荐文章于 2022-06-06 21:41:43 发布