C语言习题——%3d与%-3d 的含义 2012-03-08 10:35阅读: http://blog.sina.cn/dpool/blog/u/1823468100 //=与%-3d 的含义 #include<stdio.h> void main() { int i=11; printf('%-3d',i);//表示输出结果共有3位,不足的话,在结果最后用空格补足 printf('=',i);//表示输出结果共有3位,不足的话,在结果前面用空格补足 printf(''); }