首页 > 自考
题目内容 (请给出正确答案)
[主观题]

#include<stdio.h>int ast(int x,int y,int *cp,int *dp){*cp=x+y;*dp=x-y;}main(){int a,b,c,d;

#include<stdio.h>

int ast(int x,int y,int *cp,int *dp)

{*cp=x+y;*dp=x-y;}

main()

{int a,b,c,d;

a=4;b=3;

ast(a,b,&C,&d);

printf("%d,%d\n",c,d);

}

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“#include<stdio.h>int ast(int x…”相关的问题
第1题
以下程序的输出结果是______。 include<stdio.h> main() { int a=340; a=a/

以下程序的输出结果是______。 include<stdio.h> main() { int a=340; a=a/3; a=a%3; printf("%d",a); }

点击查看答案
第2题
下面程序段的输出结果是______。#include<stdio.h>int b=1:int func(int *a){*a+=b;return(*a);)m

下面程序段的输出结果是______。

#include<stdio.h>

int b=1:

int func(int *a)

{*a+=b;return(*a);)

main()

{int a=2,res=1;

res+=func(&a);

prf("%d%d\n",a,res);}

点击查看答案
第3题
#include<stdio.h>struct mine{int qa,qb,qc;};main(){struct mine s[2]={{1,2,3},{4,5,6}};int

#include<stdio.h>

struct mine{int qa,qb,qc;};

main()

{struct mine s[2]={{1,2,3},{4,5,6}};

int answer;

answer=s[0].qa%s[1].qb;

printf("%d\n",answer);

}

程序运行结果是:______

点击查看答案
第4题
#include"stdio.h"void fact(int k){int i,s;s=s*i:return(s);}错误:______改正:______

#include"stdio.h"

void fact(int k)

{

int i,s;

s=s*i:

return(s);

}

错误:______

改正:______

点击查看答案
第5题
#include<stdio.h>void swap(int x,int y){int t;t=x;x=y;y=t;printf("%d%d",x,y);}main(){int a

#include<stdio.h>

void swap(int x,int y)

{int t;

t=x;x=y;y=t;

printf("%d%d",x,y);

}

main()

{int a=3,b=4;

swap(a,b);

printf("%d%d\n",a,b);

}

点击查看答案
第6题
#include<stdio.h>#include<string.h>main(){int y=9;for(;y>0;y--){if(y%03==0){printf("%d",--

#include<stdio.h>

#include<string.h>

main()

{int y=9;

for(;y>0;y--)

{if(y%03==0)

{printf("%d",--y);continue;}

printf("%d",--y);

}

}

点击查看答案
第7题
#include<stdio.h>main(){int a[3][2]={{1,2},{3,4},{5,6}),i,j,s=0;for(i=1;i<3;i++)for(j=0;j<

#include<stdio.h>

main()

{

int a[3][2]={{1,2},{3,4},{5,6}),i,j,s=0;

for(i=1;i<3;i++)

for(j=0;j<2;j++)

s+=a[i][j];

print f("%d\n",s);

}

点击查看答案
第8题
#include<stdio.h>main(){int x;scanf("%d",&x);if(x>=60)printf("pass");else printf("fail");}

#include<stdio.h>

main()

{int x;

scanf("%d",&x);

if(x>=60)printf("pass");

else printf("fail");

}

程序运行时输入60<回车>,则程序运行结果是:______

点击查看答案
第9题
#include<stdio.h>main(){int a[10]={2,4,0,-5,10,6,-8,9,6,7};inti,s=0,count=0;for(i=0;i<10;i

#include<stdio.h>

main()

{int a[10]={2,4,0,-5,10,6,-8,9,6,7};

inti,s=0,count=0;

for(i=0;i<10;i++)

if(a[i]>0){s+=a[i],count++;}

else continue;

printf("s=%d,count=%d\n",s,count);

}

程序运行结果是:______

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改