【单选题】给出下面程序的运行结果。 #include int main( void ) { static int x[] = {1,2,3}; int s = 1, i, *p = x; for (i=0; i<3; i++) { s*=*(p + i); } printf ( "%d\n" , s); return 0; }
【简答题】请给出下面程序的运行结果:输入:2/5main(){int data1, data2; char op; scanf("%d%c%d", &data1, &op, &data2);switch (op){ case '+': printf("%d + %d = %d\n", data1, data2, data1 + data2);case '-':...
【简答题】给出下面程序的运行结果。 class Outer{ int num = 3; // 外部类成员变量 class Inner { int num = 4; // 内部类成员变量 void show() { int num = 5; // 局部变量 System.out.println(num); System.out.println(this.num); System.out.println(Ou...
【单选题】The report predicts that if we should carry on the policies and practices of the last 30 years, ______.
A.
the world would become much more developed
B.
many animals and plants would soon disappear
C.
we would use as many chemicals as possible
D.
we would keep as many national parks as possible
【简答题】给出下面程序的运行结果 class Demo{ int age; static int num=9; void speak(){ System.out.println(age); } } public class StaticDemo { public static void main(String[] args) { Demo d1=new Demo(); Demo d2=new Demo();...
【单选题】Which of the following is NOT the factors that the report was based on?
C.
Transportation costs and ization level.
【简答题】Steve said he having a good job,
since business is bad nowadays (fortune).
【简答题】Steve said he having a good job, since business is bad nowadays.