正在加载图片...
例 例inta=1234: float f123. 456 static char c=Hello, world printf(%o8d, %-8d,, a, a) printf("%/10.2f, %0-10 1fn,, f,f) printf(" %/10.5s, %0-10.3sn', c, c); 运行结果:1234,1234 123.46.123.5 Hello. hel例 int a=1234; float f=123.456; static char c[]=“Hello,world!”; printf(“%8d,%-8d\n”,a,a); printf(“%10.2f,%-10.1f\n”,f,f); printf(“%10.5s,%-10.3s\n”,c,c); 运行结果: 1234,1234 123.46,123.5 Hello,Hel 例 -
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有