【1C基础 C程序】 以下程序能够正常编译运行的是【 】
A:
B: include main( ); { int a=2;b=3,c; c=a+b; printf("c=%d\n",c); }
C:
D: include mian( ) { int a=2,b=3,c; c=a+b; printf("c=%d\n",c); }
E:
F: include main( ) { int a=2,b=3,c; c=a+b; printf("c=%d\n",c); }
G:
H: include main( ) { int a=2;b=3,c; c=a+b; printf("c=%d\n",c); }
A:
B: include main( ); { int a=2;b=3,c; c=a+b; printf("c=%d\n",c); }
C:
D: include mian( ) { int a=2,b=3,c; c=a+b; printf("c=%d\n",c); }
E:
F: include main( ) { int a=2,b=3,c; c=a+b; printf("c=%d\n",c); }
G:
H: include main( ) { int a=2;b=3,c; c=a+b; printf("c=%d\n",c); }
举一反三
- 有以下程序:#include main(){ int a=1,b=0; printf(%d,,b=a+b); printf(%d ,a=2*b);}
- 以下程序没有语法问题的是() 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 main() { int a=2,b=2,c=2; printf("%d\n",a/b&c); } 程序运行后的输出结果是() A: 0 B: 1 C: 2 D: 3
- 下面程序的输出结果是: #include int main() { int a=3; printf("a=%d,",a); a=a+1; printf("a=%d,",a); a*=2; printf("a=%d\n",a); return 1; }
- 写出下面程序的运行结果是#include <stdio。h>void main( ){ int a,b,c=9; a=3,b=4; c%= a+b; printf(“%d”,c)}。 A: 3 B: 2 C: 1 D: 4