以下程序中,运行结果是36的有()。
A: include
B: define M(y) y*y int main() { printf("%d\n",M(6+0)); return 0; }
C: include
D: define M(y) (y)*(y) int main() { printf("%d\n",M(6+0)); return 0; }
E: include int M(int y) { return y*y; } int main() { printf("%d\n",M(6+0)); return 0; }
F: include int M(int y) { return (y)*(y); } int main() { printf("%d\n",M(6+0)); return 0; }
A: include
B: define M(y) y*y int main() { printf("%d\n",M(6+0)); return 0; }
C: include
D: define M(y) (y)*(y) int main() { printf("%d\n",M(6+0)); return 0; }
E: include
F: include
举一反三
- 以下程序中,运行结果是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 ;}
- 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; }
- 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; }
- 以下程序的输出结果是( ) int m=4,n=6; max( int x,int y) {int max; max=x>y?x:y; return(max); } main( ) {int m=10; printf("%d",max(m,n)); }