10.以下程序中,运行结果是36的有()。
A:
B: include
C: defineM(y) y*y intmain() { printf("%d\n",M(6+0)); return0; }
D:
E: include
F: defineM(y) (y)*(y) intmain() { printf("%d\n",M(6+0)); return0; }
G:
H: include intM(inty) { returny*y; } intmain() { printf("%d\n",M(6+0)); return0; }
I:
J: include intM(inty) { return(y)*(y); } intmain() { printf("%d\n",M(6+0)); return0; }
A:
B: include
C: defineM(y) y*y intmain() { printf("%d\n",M(6+0)); return0; }
D:
E: include
F: defineM(y) (y)*(y) intmain() { printf("%d\n",M(6+0)); return0; }
G:
H: include intM(inty) { returny*y; } intmain() { printf("%d\n",M(6+0)); return0; }
I:
J: include intM(inty) { return(y)*(y); } intmain() { printf("%d\n",M(6+0)); return0; }
举一反三
- 以下程序中,运行结果是36的有()。 A: include <stdio.h> B: define M(y) y*y int main() { printf("%d\n",M(6+0)); return 0; } C: include <stdio.h> D: define M(y) (y)*(y) int main() { printf("%d\n",M(6+0)); return 0; } E: include <stdio.h> int M(int y) { return y*y; } int main() { printf("%d\n",M(6+0)); return 0; } F: include <stdio.h> int M(int y) { return (y)*(y); } int main() { printf("%d\n",M(6+0)); return 0; }
- 以下程序中,运行结果是36的有()。 A: B: include <stdio.h> C: define M(y) y*y int main() { printf("%d ",M(6+0)); return 0; } D: E: include <stdio.h> F: define M(y) (y)*(y) int main() { printf("%d ",M(6+0)); return 0; } G: H: include <stdio.h> int M(int y) { return y*y; } int main() { printf("%d ",M(6+0)); return 0; } I: J: include <stdio.h> int M(int y) { return (y)*(y); } int main() { printf("%d ",M(6+0)); 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 ;}
- 下列程序的输出为_________.intmain(){inty=10;while(y--);printf("y=%d\n",y);return 0;} A: while构成无限循环 B: y=0 C: y=-1 D: y=1
- 以下程序的输出结果是()。#includestdio.hintf(intx){inty;if(x==0||x==1)return(3);y=x*x-f(x-2);returny;}intmain(){intz;z=f(3);printf(%d ,z);return0;}