以下程序中,运行结果是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>
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;
}
举一反三
- 以下程序中,运行结果是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; }
- 以下程序没有语法问题的是() 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 ;}
- 程序填空,使下面程序实现输出N!(N<=10000)的最低三位。#include <stdio.h>int main(){int N,M=1;scanf("%d",&N);for (int i=1;i<=N;i++){M=M*i;M=__________;}printf("%03d",M);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; }
- 在下列选项中,有正确的程序是( )。 A: B: include <stdio.h>; C: define ABC 345int main( ){int a1;a1=ABC;return 0;} D: E: include <stdio.h> F: define ABC 345;int main( ){int a1;a1=ABC;return 0;} G: H: include <stdio.h> I: define ABC 345int main( ){int a1;a1=ABC;return 0;} J: K: include <stdio.h> L: define ABC 345int main( ){a1=ABC;int a1;return 0;}