#includestatic int x=5;void f1...4=%d ,x); return 0;}
举一反三
- #include [stdio.h] int x,y; int f(int x){ y=x++; printf("%d",y); } int main(void){ int x=5; f(x); f(x); return 0; }
- 下面的函数定义,( )是正确的。 A: void f() { ...... return; } B: void f() { ...... return 0; } C: int f(); { ...... return; } D: double f(int x;int y) { ...... return; }
- 下列程序的运行结果是( )#include <stdio.h>int fun1(int x); void fun2(); int x=5; int main() { int x=1; x=fun1(x); printf("%d",x); return 0; } int fun1(int x) { x++; fun2(); return x; } void fun2() { x++;} A: 6 B: 5 C: 2 D: 7
- Which five methods,inserted independently at line 5,will compile?() A: public int blipvert(int x){return 0;} B: private int blipvert(int x){return 0;} C: private int blipvert(long x){return 0;} D: protected int blipvert(long x){return 0;} E: protected long blipvert(long x){return 0;} F: protected long blipvert(int x, int y){return 0;}
- Given: Which five methods, inserted independently at line 5, will compile?() A: protected int blipvert(long x) { return 0; } B: protected long blipvert(int x) { return 0; } C: private int blipvert(long x) { return 0; } D: private int blipvert(int x) { return 0; } E: public int blipvert(int x) { return 0; } F: protected long blipvert(long x) { return 0; } G: protected long blipvert(int x, int y) { return 0; }