A.减肥咨询
B.补钙咨询
C.整容咨询
D.冬季服用膏
E.补充营养素
第1题
A.-1
B.1
C.0
D.4
第2题
以下程序的输出结果是#include "stdio.h"int *fun(int *a,int *b){ int m; m=*a; m+=*b-3; return(&m);}main(){ int x=21,y=35,*a=&x,*b=&y; int *k; k=fun(a,b); printf("%d\n",*k);}
第3题
以下程序的运行结果是______。
#include<stdio.h>
main()
{int k=4,m=1,p;
p=func(k,m);
printf("%d,",P);
p=func(k,m);
printf("%d\n",p);
}
func(int a, int b)
{static int m=0, i=2
i+=m+1;
m=i+a+b;
return m;
}
第4题
有以下程序: #include <stdio.h> main() { int a=1,b=2,m=0,n=0,k; k=(n=b>a)||(m=a<b); printf("%d,%d\n",k,m); } 程序运行后的输出结果是()。
A.0,0
B.0,1
C.1,0
D.1,1
第5题
以下程序的执行结果是______
include<iostream.h>
void func(int);
void main()
{
int k=4
func(k) ;
func(k) :
cout<<end1;
}
void func(int a)
{
static int m=0;
m+=a;
cout<<m<<" ";
}
第6题
有以下程序:
include <iostream>
using namespace std;
int main()
{
int m[5],n[5],*px,*py,k;
px=m;
py=n;
for(k=1;k<4;k++)
{
*px=k;
*py=2*k;
cout<<m[k-1]<<n[k-1];
px++;py++;
}
cout<<end1;
return 0;
}
运行后的输出结果为【 】。
第7题
以下程序的输出结果是 。 #include <iostream> using namespace std; int fun(int k) { static int m=1; int n=2; m=k+m+n++; return m; } void main() { for(int i=0; i<3; i++)> <<’\t’; }>
第8题
设有以下程序:
include<iostream>
using namespace std;
int main()
{
int a,b,k:4,m=6,*p1=&k,*p2=&m;
a=p1==&m;
b=(*p1)/(*p2)+7;
cout<<a<<b<<end1;
return 0;
}
执行该程序后,a的值为【 】,b的值为【 】。
第9题
有以下程序:
include<stdio.h>
main()
{ int a,b,k,m,*pl,*p2;
k=1,m=8;
p1=&k,p2=&m;
a=/*pl-m;b=*p1+*p2+6;
printf("%d",a);printf("%d\n",b);
}
编译时编译器提示错误信息,你认为出错的语句是()。
A.a=/*pl-m;
B.b=*p1+*p2+6;
C.k=1,m=8;
D.pl=&k,p2-&m;
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!