首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序 struct S{int a;int b;}; main(){struct S a,*p=&a; a.a=99; printf("%d\n",_______);} 程序要求输出结构体中成员a的数据,以下不能填入横线处的内容是
有以下程序 struct S{int a;int b;}; main(){struct S a,*p=&a; a.a=99; printf("%d\n",_______);} 程序要求输出结构体中成员a的数据,以下不能填入横线处的内容是
admin
2018-11-21
21
问题
有以下程序
struct S{int a;int b;};
main(){struct S a,*p=&a;
a.a=99;
printf("%d\n",_______);}
程序要求输出结构体中成员a的数据,以下不能填入横线处的内容是
选项
A、a.a
B、*p.a
C、p->a
D、(*p).a
答案
B
解析
如果p指向结构体,那么下面三种形式都可以访问结构体的成员:结构体变量.成员名、(*p).成员名、p->成员名。
转载请注明原文地址:https://kaotiyun.com/show/pYxp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下列程序的输出结果是______。main(){inti;for(i=l;i
数据流图的类型有______和事务型。
下面程序的运行结果是()。#include<stdio.h>#defineSlZE12main(){chars[SIZE];inti;for(i=0;i<SIZE;i++)s[i]=’A’+i+3
下列叙述中正确的是______。
下面四个选项中,均是不正确的8进制数或16进制数的选项是
排序是计算机程序设计中的一种重要操作,常见的排序方法有插入排序、______和选择排序。
数据库系统中实现各种数据管理功能的核心软件称为【】。
函数delete(s,i,n)是作用是从字符串s中删除从第i个字符开始的n个字符,请填空。voiddelete(chars[],inti,intn){intj,k,length=0;while(s[length])
数据流图中带有箭头的线段表示的是()。
随机试题
公司债券的认购______。
二氧化碳气腹引起高碳酸血症和酸碱平衡紊乱,与下列因素有关的是
患者,女,55岁。症见乳房结节、数目不等、大小形态不一、质地柔软。临床宜选用的方剂是乳癖消胶囊。乳癖消胶囊的功能是
A.柔红霉素B.依托泊苷C.伊立替康D.紫杉醇E.顺铂作用于拓扑异构酶Ⅰ的抗肿瘤药物
钢板桩围堰的施工程序是:()。
2010年3月1日,某建设工程开工,由于设计图样变更,工程于2010年9月18日中止施工。根据我国《建筑法》的规定,建设单位最迟应当于()向施工许可证的发证机关报告。
USresearchershavefoundtracesofanancientlakeonMarsrecently,increasinghopesofdiscoveringevidencethatbillionsof
下列有关剥夺政治权利的说法,哪些是正确的()
设
设有如下关系:学生(学号,姓名,性别,年龄,班号)其关键字是学号,将学号为10的学生姓名改为“王华”的SQL语句是______。
最新回复
(
0
)