【单选题】
下列()对结构类型变量定义是错误的。
①
struct teacher {int num; int age; } teach1;
②
struct {int num; int age; } teach1, teach2;
③
struct {int num; int age; } teacher; struct teacher teach1;
④
struct teacher {int num; int age; } ; struct teacher teach1;
【判断题】
数组a的定义:int a[5][3]={{1,3},{5},{5,6,8}};则该数组共有6个元素。
【单选题】
struct student{long int num;char name[20];char sex;char addr[20];}______。以下能够正确定义的是
①
a={Li Lin,10101,M,123 Beijing Road
②
a={10101,Li Lin,123 Beijing Road,M
③
a={10101,Li Lin,M,123 Beijing Road
④
a={123 Beijing Road,Li Lin,M,10101};
【单选题】
假定一个初始堆为(1, 5, 3, 9, 12, 7, 15, 10),则进行第一趟堆排序后得到的结果为(( )。
①
3, 5, 7, 9, 12, 10, 15, 1
②
3, 5, 9, 7, 12, 10, 15, 1
③
3, 7, 5, 9, 12, 10, 15, 1
④
3, 5, 7, 12, 9, 10, 15, 1