A.int w= S [1];
B.int w= S [2];
C.int w= S [3];
D.int w= S [4];
第1题
A.int w= S [1];
B.int w= S [2];
C.int w= S [3];
D.int w= S [4];
第2题
A、void area(int length, int width ) { int s; s= length * width ; printf(“长方形面积是%d\n”, s); }
B、int area(int length, int width ) { int s; s= length * width ; printf(“长方形面积是%d\n”, s); }
C、int area(int length, int width ) { int s; s= length * width ; return s; }
D、void area(int length, int width ) { int s; s= length * width ; return s; }
第3题
有以下程序 yoidfun(int*pl,int*p2,int*S) { s=(int*)malloc(sizeof(int)); *S=*pl+*(p2++);) main(){ inta[2]={1,2},b[2]={10,20},*s=a; fun(a,b,S); printf(%dha,*S);} 程序运行后的输出结果是
A.10
B.11
C.2
D.1
第4题
给出下面的代码:
public class Parent{
public int addValue(int a,int b){
int s;
s=a+b;
return s;
}
}
class Child extends Parent{
}
以下方法可以加入类Child中的是______。
A.int addValue(int a,int b){//do something…}
B.public void addValue(){//do something…}
C.public int addValue(int a){//do something…}
D.public int addValue(int a,int b)throws MyException{//do something…}
第5题
A.struct c { int x; int y; }s;
B.struct { int x; int y; }s;
C.struct c s { int x; int y; };
D.struct c { int x; int y; }; Struct c s;
第6题
A.int input(s[],len)
B.int input(int s[][9],int len)
C.int input(int s[9],int len)
D.int input(int s[2][9],int len)
第7题
A.s=10
B.10
C.55
D.s=55
第8题
A.int s[];
B.int[] s = new int[5];
C.int[] s = {3,4,7,2,6};
D.int s[] = {"2","3","8","7","9"};
第9题
A、template <typename s, int arraysize> void selectionSort(S list[], int arraySize) { // do something }
B、template <typename s> void selectionSort(S list[], int arraySize) { // do something }
C、template <typename s, int array_size> S selectionSort(int list[]) { // do something }
D、template <typename s> void selectionSort(int list[], S arraySize) { // do something }
第10题
下列程序的输出结果是______。 include<stdio.h> sb(int s[],int B) {static int n=3; b=s[n]; n--; return(B) ; } main() { int s[]={1,5,6,8}; int i,x=0; for(i=0;i<4;i++) {x=sb(s,x); printf("%d",x); } printf("\n"); }
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!