以下程序正确的是_____
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;
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; }
- 以下程序没有语法问题的是() A: B: include<;stdio.h>;int main( ){int x , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} C: D: include<;stdio.h>;int main( ){int x = 3 ;y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} E: F: include<;stdio.h>;int main( ){int x = 3 ,y ; printf( "%d\n" , x / y ) ;y = 5; return 0 ;} G: H: include<;stdio.h>;int main( ){int x = 3 , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;}
- #include <stdio.h>void main(){ int x=20,y=50; printf(
- 执行以下程序后,输出结果第一行为,第二行为。#include<;stdio.h>;int n=0;void f();int main(){int n;n=2;f();printf("%d\n",n);return 0;}void f(){n=n+5;printf("%d\n",n);}
- 执行以下程序后,输出结果为。#include<;stdio.h>;int n;void f();int main(){n=0;f();n=n+2;printf("%d\n",n);return 0;}void f(){n=n+5;}