printf("%5.10s%s\n","abcdefghijklm","a");内部是怎么执行的?执行的先后顺序是什么?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 04:12:58
printf("%5.10s%s\n","abcdefghijklm","a");内部是怎么执行的?执行的先后顺序是什么?printf("%5.10s%s\n","abcdefghijklm","a"

printf("%5.10s%s\n","abcdefghijklm","a");内部是怎么执行的?执行的先后顺序是什么?
printf("%5.10s%s\n","abcdefghijklm","a");内部是怎么执行的?执行的先后顺序是什么?

printf("%5.10s%s\n","abcdefghijklm","a");内部是怎么执行的?执行的先后顺序是什么?
5.10s表示最少5个字符,最大10个字符,并且%5.10s应用到“abcdefghijklm”上===》得到:“abcdefghij”
%s,输出字符串,引用到“a”上,
所以结构是:
abcdefghija