问题

下列程序的运行结果为【14】

#include <stdio.h>

#include <string.h>

struct A

{int a;char b[10];double c;};

void f (struct A *t);

main()

{struct A a=(1001,”ZhangDa”,1098,0);

f(&a);printf(“&d,&s,&6,if\n”,a.a,a.b,a.c);

}

void f(struct A *t)

{strcpy(t->b,”ChangRong”); }

参考答案
您可能感兴趣的试题
  • (15)程序段:int x=12; double y=3.141593; printf(“%d%8.6f”,x,y);的输出结果是A)123.141593 B)12 3.141593 C)12,3.1
  • 以下程序把三个NODETYPE型的变量链接成一个简单的链表,并在while循环中输出链表结点数据域中的数据,请填空#include struct node{int data; str
  • (16)若有定义语句:double x,y,*px,*py,执行了px=&x, py=&y;之后,正确的输入语句是A)scanf(“%f%f”,x,y); B) scanf(“%f%f”,&x,&y)
  • (17)以下是if语句的基本形式:if (表达式) 语句,其中表达式A)必须是逻辑表达式 B)必须是关系表达式C)必须是逻辑表达式或关系表达式 D)可以是任意合法的表达式
  • (18)有以下程序#include main(){int x;scanf(“%d”,&x);if(x<=3); elseif(x!=10) printf(“%d\n”,x);}程序运
  • (19)有以下程序#includeMain(){ int a=1,b=2,c=3,d=0;if(a= =1 &&b++= =2)if(b!=2 || c--!=3)printf(“%