一.选择题(1)下面程序段执行后的输出结果是( )。(“□”表示一个空格)int a=3366;printf(“|-08d|”, a);
A. |-0003366|
B. |00003366|
C. |3366□□□□|
D. 输出格式非法
(2)以下程序的输出结果是( )。void main(){printf(“s1= |%15s| s2=|%-5s|”,”chinabeijing”,”chi”);}
A. s1=|chinabeijing□□□| s2=|chi|
B. s1=|chinabeijing□□□| s2=|chi□□|
C. s1=|□□□chinabeijing| s2=|□□chi|
D. s1=|□□□chinabeijing| s2=|chi□□|