|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 我爱橙 于 2022-2-26 14:19 编辑
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- char a[]="This is a program";
-
-
- printf("%.5s\n", a);
- return 0;
- }
复制代码
A.打印This
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- char a[]="This is a program";
-
- puts(a);
- return 0;
- }
复制代码
B.打印This is a program
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- char a[]="This is a program";
-
-
- printf("%s\n", a);
- return 0;
- }
复制代码
C.打印This is a program
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- char a[]="This is a program";
- a[5*2]=0;
- puts(a);
- return 0;
- }
复制代码
D.打印This is a |
|