1.以下程序正确的是( )。
A: include stdio.h{ printf(A\n);}
B: void main(){ printf(A\n);}
C: includestdio.hvoid main(){ printf(A\n);}
D: ...
A: include stdio.h{ printf(A\n);}
B: void main(){ printf(A\n);}
C: includestdio.hvoid main(){ printf(A\n);}
D: ...
举一反三
- 以下程序正确的是 A: include stdio.h{ printf(A\n);} B: void main(){ printf(A\n);} C: includestdio.hvoid main(){ printf(A\n);} D: includestdio.hvoid min(){ printf(A\n);}
- 以下程序正确的是_____ A: B: include<;stdio.h>;int gNum;gNum=13;void main(){printf("%d\n", gNum);} C: D: include<;stdio.h>;void main(){int rob=17;printf("rob=%d\n", rop);}int rop=71; E: F: include<;stdio.h>;void main(){extern int outer;printf("outer=%d\n", outer);}int outer=33; G: H: include<;stdio.h>;void main(){extern int outer=33;printf("outer=%d\n", outer);}int outer=33;
- Which of the following program is right? A: include <stdio.h> int main(); { /*programming*/ printf("programming!\n"); return 0; } B: include <stdio.h> int main() { /*programming*/ printf("programming!\n"); return 0; } C: include <stdio.h> void main() { /*programming*/ printf("programming!\n") return 0; } D: include <stdio.h> int mian() { /*programming*/ printf("programming!\n"); return 0; }
- 编写程序,用“*”输出字母C。 答案: #include void main() { printf("* * * *\n"); printf("*\n"); printf("*\n"); printf("*\n"); printf("* * * *\n");
- #include "stdio.h"void main(){ char a='1',b='2'; printf("%c",b++); printf("%d\n",b-a);}程序运行后输出的结果是: