填空题
以下程序运行后的输出结果是 【4】 。
main()
char c; int n=100;
float f=10; double x;
x=f* =n/=(c=50);
printf("%d %f\n",n,x);
【参考答案】
2 20.000000
热门
试题
填空题
有以下程序: void f(int*x,iht * y) int t; t=*x;*x;=*y;*y=t; main() int a[8]=1,2,3,4,5,6,7,8,i,*p,*q; p=a;q=&a[7]; while(p) f(p,q);p++;q--; for(i=0;i<8;i++)printf( %d, ,a[i]); 程序运行后的输出结果是 【11】 。
填空题
有以下程序: # 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】 。