首页
›
答案
›
题库
›
知到智慧树
›
未分类
定义以下结构体数组structc{intx;inty;}s[2]={1,3,2,7};语句printf("%d",s[0].x*s[1].x)的输出结果为()
定义以下结构体数组structc{intx;inty;}s[2]={1,3,2,7};语句printf("%d",s[0].x*s[1].x)的输出结果为()
A.14
B.6
C.2
D.21
正确答案:C
标签:
C语言程序设计基础
数组
语句
上一条:
运行下列程序段,输出结果是()。structcountry{intnum;charname[10];}x[5]={1,"China",2,"USA",3,"France",4,"England",5,"Spanish"};structcountry*p;p=x+2;printf("%d,%c",p->num,(*p).name[2]);
下一条:
定义以下结构体类型structstudent{charname[10];floatscore[50];doubleaverage;}stud1;则stud1占用内存的字节数是()。