填空题
有以下程序:
# include<stdio.h>
main()
int a[]=1,2,3,4,5,6,7,8,9,10,11,12, *p=a+5, *q=NULL;
*q=*(p+5);
printf("%d%d\n",*p,*q);
程序运行后的输出结果是 【10】 。
【参考答案】
运行后报错
热门
试题
填空题
有以下程序: # include<string.h> struct STU char name[10]; int num;; void f(char *name, int num) struct STU s[2]= SunDan ,20044, Penghua ,20045; num=s[0].num; strcpy(name,s[0].name); main() struct STU s[2]= YangSan ,20041, LiSiGuo ,20042,*p; p=&s[1];f(p->name,p->num); printf( %s %d n ,p->name,p->num); 程序运行后的输出结果是 【8】 。