填空题
设有以下定义和语句,则*(*(p+2)+1)的值为
【20】
。 int a[3][2]={10,20,30,40,50,60},(*p)[2]; p=a;
【参考答案】
60
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
阅读下列程序,则程序的输出结果为 【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’;}
点击查看答案&解析
填空题
下面程序的输出结果是 【15】 。long fun5(int n){ long s;if((n==1)||(n==2))s=2;elses=n+fun5(n-1);return(s);} main(){ long x;x=fun5(4);printf( %ld n ,x);}
点击查看答案
相关试题
mystrlen函数的功能是计算str所指字符串的...
下面程序将二维数a的行和列元素互换后存放...