填空题
阅读下列程序,则程序的输出结果为
【16】
。
#include"stdio.h"
struct ty
int data;
char c;;
main()
struct ty a=30,’x’;
fun(a);
printf("%d%c",a.data,a.c);
fun(struct ty b)
b.data=20;
b.c=’y’;
【参考答案】
30x
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
下面程序的输出结果是 【15】 。 long fun5(int n) long s; if((n==1)||(n==2)) s=2; else s=n+fun5(n-1); return(s); main() long x; x=fun5(4); printf( %ld n ,x);
点击查看答案
填空题
以下函数用来在w数组中插入x。n所指向的存储单元中存放w数组中字符个数。数组w中的字符已按从小到大的顺序排列,插入后数组w中的字符仍有序。请填空。 void fun(char*w,char x,int*n) int i, p; p=0; w[*n]=x; while(x>w[p])p++; for(i=*n;i>p;i--)w[i]= 【13】 ; w[p]=x; ++ *n;
点击查看答案&解析
相关试题
设有以下定义和语句,则*(*(p+2)+...
下面程序将二维数a的行和列元素互换后存放...
下述程序的输出结果是 【12】 。 #in...