单项选择题

下面结构体的定义语句中,错误的是( )。

A.struct ordint x;int y;int z;;struct ord a;
B.struct ordint x;int y;int z;struct ord a;
C.struct ordint x;int y;int z;a;
D.structint x;int y;int z;a;
<上一题 目录 下一题>
热门 试题

单项选择题
已知学生记录描述为: struct student int no; char name[20],sex; struct int year,month,day; birth; ; struct student s; 设变量s中的“生日”是“1984年11月12日”,对“birth”正确赋值的程序段是( )。
A) year=1984;month=11;day=12;
B) s.year=1984;s.month=11;s.day=12;
C) birth.year=1984;birth.month=11;birth.day=12;
D) s.birth.year=1984;s.birth.month=11;s.birth.day=12;
单项选择题
函数调用strcat(strcpy(str1,str2),str3)的功能是( )。
A) 将字符串str1复制到字符串str2中后再连接到字符串str3之后
B) 将字符串str1连接到字符串str2之后再复制到字符串str3之后
C) 将字符串str2复制到字符串sir1中后再将字符串str3连接到字符串str1之后
D) 将字符串str2连接到字符串str1之后再将字符串str1复制到字符串str3中
相关试题
  • 读取二进制文件的函数调用形式为:fread(b...
  • 有以下程序 main() char s[]= Yes...
  • 在“文件包含”预处理语句的使用形式中,当...
  • 下列程序的输出结果是( )。 #include...
  • 有以下程序: #include void WriteStr...