第1题
A.2
B.1
C.-1
D.-2
第2题
A.2
B.1
C.-1
D.-2
第3题
A.1243
B.1212
C.1234
D.2112
第4题
A.15
B.abc3
C.256
D.63
第5题
第6题
voide main( )
{stack s;
char x,y;
InitStack(s)
x=‘1’,y=‘0’
push(s,x);
push(s,x);
push(s,y);
push(s,x);
push(s,‘e’);
push(s,x);
pop(s,x);
push(s,‘h’);
while(!stackEmpty(s))
{pop(s,y);
printf(y);
}
prinft(x)
}
第7题
void fun(int*x,int*y)
{printf("%d%d",*x,*y);
*x=3:
*y=4;
}
main()
{int x=1,y=2;
fun(&y,&x);
printf("%d%d",x,y);
}
A.2 1 4 3 B.1 2 1 2 C.1 2 3 4 D.2 1 1 2
第8题
void fun(int*x,int*y)
{printf("%d%d",*x,*y);
*x=3:
*y=4;
}
main()
{int x=1,y=2;
fun(&y,&x);
printf("%d%d",x,y);
}
A.2 1 4 3 B.1 2 1 2 C.1 2 3 4 D.2 1 1 2
第9题
include<iostream.h>
void main()
{int i=10,sum=0;
do
{
sum=+sum+i;
i=i-2;
}while(i>=2);
cout<<sum<<end1;
}
第10题
A.2143
B.1212
C.1234
D.2112
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!