7.printf(“%5.3s,%-5.3s,%2.3s”, “China”, “China”, “China”); 以上语句的运行结果是_______。
□□Chi, Chi□□,Chi
举一反三
- printf(“%5.3s,%-5.3s,%2.3s”, “China”, “China”, “China”); 以上语句的运行结果是_______
- printf(“%5.3s,%-5.3s,%2.3s”, “China”, “China”, “China”); 以上语句的运行结果是_______。
- 7.printf(“%5.3s,%-5.3s,%2.3s”, “China”, “China”, “China”); 以上语句的运行结果是_______。 A: □□ina, ina□□,ina B: □□Chi, Chi□□,Ch C: Chi□□, □□Chi, Chi D: □□Chi, Chi□□,Chi
- printf(“%5.3s,%-5.3s,%2.3s”, “China”, “China”, “China”); 以上语句的运行结果是_______。 A: □□Chi, Chi□□,Chi B: Chi□□, □□Chi, Chi C: □□ina, ina□□,ina D: □□Chi, Chi□□,Ch
- printf(“%3s,%7.2s,%.4s%-5.3s ”, “CHINA”, “CHINA” ”, “CHINA”, “CHINA”);
内容
- 0
现有语句printf("%s,%5.3s\n","CHINESE","CHINESE");的运行结果是()
- 1
语句printf("*s=%-5.3s*","computer");的输出结果是()
- 2
以下程序的运行结果是void main ( ){ char str [] = I love China!; printf (%s, str); printf (%s\n, str + 7);} A: I love China!China! B: IChina! C: I love China! China! D: I China!
- 3
02620061:int main() { printf("%s,%5.3s","computer","computer"); }的运行结果是( )。
- 4
printf("%s","CHINA");输出结果是________。