在下列选项中,有正确的程序是( )。
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;}
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;}
举一反三
- 以下程序中,运行结果是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; }
- 以下哪一个是正确的C语言程序结构? A: B: include int main() { return 0; } C: int main() D: include { return 0; } E: int main() { F: include return 0; } G: H: include int main() { } return 0;
- 下列程序的运行结果是 。 #include <stdio.h>int main(){ char ch='F';printf("%c",ch+32-3);return 0; }
- 下面不正确的函数重载是________。 A: int A1(float &r) { return 1; } int A1 (float const &r) { return 1; } B: float A1(int *const p) { return 1; } float A1 (const int *p) { return 1; } C: int A1 (float * const p) { return 1; } int A1(float const * const p) { return 1; } D: float A1 (int const *const p) { return 1; } float A1(const int *p) { return 1; }
- 以下程序中,运行结果是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; }