搜题
章节测试答案
学历考试
继续教育
网课答案
网课答案全集
登录
注册
请在
下方输入
要搜索的题目:
搜 索
立 即 搜 题
设有以下语句:typedef struct S{int g;char h;}T;则可以用T定义结构体变量
选项:
A:对
B:错
语句
定义
变量
发布时间:
2024-04-08 09:52:00
首页
技能鉴定
推荐参考答案
(
由 搜题小帮手 官方老师解答 )
联系客服
答案:
以下文字与答案无关
提示:有些试题内容 显示不完整,文字错误 或者 答案显示错误等问题,这是由于我们在扫描录入过程中 机器识别错误导致,人工逐条矫正总有遗漏,所以恳请 广大网友理解。
查看参考答案
相关试题
1.
若有以下语句 typedef struct S { int g; char h; } T; 以下叙述中正确的是 选项: A:可用S定义结构体变量 B:S是struct 类型的变量 C:T是struct S类型的变量 D:可用T定义结构体变量
2.
以下选项中不能正确把cl定义成结构体变量的是( )。 选项: A、typedef struct B、int red; C、int green; D、int blue; E、COLOR; F、COLOR cl; G、struct color cl H、int red; I、int green; J、int blue; K、struct color L、int red; M、int green; N、int blue; O、cl; P、struct Q、int red; R、int green; S、int blue; T、cl;
3.
以下定义结构变量的语句中,错误的是( )。 选项: A、struct student{ int num; char name[20];} s; B、 struct student{ int num; char name[20];};struct s; C、 struct student{ int num; char name[20];};student s; D、 struct student{ int num; char name[20];};struct student s;
4.
设有如下语句 typedef struct Date{ int year; int month; int day; } DATE; 则以下叙述中错误的是( )。 选项: A、DATE是用户定义的结构体变量 B、struct Date是用户定义的结构体类 C、DATE是用户说明的新结构体类型名 D、struct是结构体类型的关键字
5.
下面定义结构变量的语句中错误的是()选项: A:struct student{ int num; char name[20]; } s; B:struct { int num; char name[20]; } s; C:struct student{ int num; char name[20]; }; struct student s; D:struct student{ int num; char name[20]; }; student s;
6.
下面不能正确定义结构体变量a的语句是______。 选项: A: struct xyz{char x;int y;float z;}; struct xyz a; B: struct xyz{char x;int y;float z;} a; C: struct xyz{char x;int y;float z;}; struct a; D: struct {char x;int y;float z;} a;
7.
设有一结构体类型变量定义如下: struct date { int year; int month; int day; }; struct worker { char name20]; char sex; struct date birthday; }w1; 若对结构体变量 w1 的出生年份进行赋值,则下面的赋值语句正确的是 ( )。 选项: A:year=1976 B:birthday.year=1976 C:w1.birthday.year=1976 D:w1.year=1976
8.
以下变量定义,错误的是: 选项: A、struct student{int num, char name[20];} s; B、struct {int num, char name[20];} s; C、struct student{int num, char name[20];}; struct student s; D、struct student{int num, char name[20];} ; student s
9.
下面定义结构变量的语句中错误的是()A.struct student{ int num; char name[20];}sB.struct { int num; char name[20]; }SC.struct student{ int num; char name[20]; }; struct student sD.struct student{ int num; char name[20]; }; student s
10.
设有一结构体类型变量定义如下:struct date{ int year;int month;int day;};struct worker{ char name[20];char sex;struct date birthday;}w1;若对结构体变量w1的出生年份进行赋值,下面正确的赋值语句是( )选项: A:birthday.year=1976 B:w1.year=1976 C:year=1976 D:w1.birthday.year=1976
11.
设有一结构体类型变量定义如下,若对结构体变量w1的出生年份year进行赋值,下面正确的赋值语句是( )struct date{int year;int month;int day;};struct worker{char name[20];char sex;struct date birthday;}w1;选项: A:year=1976; B:birthday.year=1976; C:w1.birthday.year=1976 ; D:w1.year=1976
12.
设有一结构体类型变量定义如下: struct date { int year; int month; int day; }; struct worker { char name[20]; char sex; struct date birthday; }w1; 若对结构体变量w1的出生年份进行赋值,下面正确的赋值语句是( )选项: A:w1.birthday.year=1976 B:birthday.year=1976 C:year=1976 D:w1.year=1976
13.
以下选项中不能正确把cl定义成结构体变量的是 选项: A:struct color cl{ int red; int green; int blue;}; B:typedef struct{ int red; int green; int blue;} COLOR;COLOR cl;; C:typedef struct{ int red; int green; int blue;} COLOR;COLOR cl;; D:typedef struct{ int red; int green; int blue;} COLOR;COLOR cl;
14.
设有一结构体类型变量定义如下,若对结构体变量w1的出生年份year进行赋值,下面正确的赋值语句是( ) struct date { int year; int month; int day; }; struct worker { char name[20]; char sex; struct date birthday; }w1; 选项: A、year=1976 B、irthday.year=1976 C、w1.birthday.year=1976 D、w1.year=1976
15.
设有一结构体类型变量定义如下,若对结构体变量w1的出生年份进行赋值,下面正确的赋值语句是( )struct date{int year;int month;int day;};struct worker{char name[20];char sex;struct date birthday;}w1; 选项: A、year=1999 B、 Birthday.year=1999 C、 w1.year=1999 D、 w1.birthday.year=1999
16.
以下对结构体类型变量的定义中,不正确的是______。 选项: A、typedef struct aa B、int n; C、float m; D、AA; E、AA td1; F、#define AA struct aa G、AA H、int n; I、float m; J、td1; K、struct L、int n; M、float m; N、aa; O、srtuct aa td1: P、struct Q、int n; R、float m; S、tdl;
17.
有以下程序段typedef struct node { int data; struct node *next; }NODE;NODE *p;以下叙述正确的是( )。选项: A:NODE *p;语句出错 B:p 是struct node 结构体变量 C:p 是指向struct node 结构体变量的指针的指针 D:p 是指向struct node 结构体变量的指针
用户中心
登录
没有账号?
点我注册
热门标签
廉耻
杀鸡给猴看
专供
吃一堑
泼洒
证件
层次分明
洗理费
披靡
短诗
登录 - 搜题小帮手
登录
立即注册
已购买搜题包,但忘记账号密码?
登录即同意
《服务协议》
及
《隐私政策》
注册 - 搜题小帮手
确认注册
立即登录
登录即同意
《服务协议》
及
《隐私政策》
购买搜题卡查看答案
购买前请仔细阅读
《购买须知》
体验
30天体验包
¥
5.99
无赠送,体验一下
查看100次答案
推荐
半年基础包
¥
9.99
畅享300次搜题
查看300次答案
随心用
超值包一年
¥
29.99
超值包,一万次搜题
查看10000次答案
月卡
月卡
¥
19.99
30天无限搜题
查看30天答案
请选择支付方式
已有帐号 点我登陆
微信支付
支付宝扫码
请输入您的手机号码:
点击支付即表示同意并接受了
《服务协议》
和
《购买须知》
填写手机号码系统自动为您注册
立即支付
我们不保证100%有您要找的试题及正确答案!请确保接受后再支付!
联系客服
找回账号密码
微信支付
订单号:
1111
遇到问题请
联系客服
恭喜您,购买搜题卡成功
系统为您生成的账号密码如下:
账号
密码
重要提示:
请勿将账号共享给其他人使用,违者账号将被封禁。
保存账号查看答案
请不要关闭本页面,支付完成后请点击【支付完成】按钮
支付完成
取消支付
遇到问题请联系
在线客服