【单选题】【消耗次数:1】
有以下说明语句:struct Point{int x;int y;};则叙述正确的是()
正确的结构类型说明
正确的结构变量说明
错误的原因是结构中成员类型相同
无意义的说明
参考答案:
复制
纠错
相关题目
【单选题】 若变量已正确说明为int类型,要给a,b,c输入数据,以下语句正确的是()
①  read(a,b,c);
②  scanf(%d%d%d,a,b,c);
③  scanf(%D%D%D,a,%b,%c);
④  scanf(%d%d%d,a,b,c);
【单选题】 若有说明语句:int a[2][3]={0};,则下面正确的叙述是()。
①  此语句说明不正确
②  只有a[0][0]可以得到初值0
③  数组中的每个元素可以得到初值0
④  数组中的每个元素可以得到初值,但不一定为0
【单选题】 若有以下说明语句: structstudent {int charname[ floatscore; }stu; 则下面的叙述不正确的是()
①  struct是结构体类型的关键字
②  structstudent是用户定义的结构体类型
③  num,score都是结构体成员名
④  stu是用户定义的结构体类型名
【单选题】 若有以下说明语句: structdate {intyear; intmonth; int }brithday; 则下面的叙述不正确的是().
①  struct是声明结构体类型时用的关键字
②  structdate是用户定义的结构体类型名
③  brithday是用户定义的结构体类型名
④  year,day都是结构体成员名
【单选题】 有说明语句int *p=new int[10];访问动态数组元素的正确语句是()
①  int a=p;
②  int a=*p;
③  delete int[]p
④  delete p int[10]
【单选题】 若有说明:int a[3][4]={0};则下面正确的叙述是( )。
①  只有元素a[][]可得到初值0
②  此说明语句不正确
③  数组a中个元素都可以得到初值,但其值不一定为0
④  数组a中每个元素均可得到初值0
【单选题】 若有说明:int a[3][4]={0};则下面正确的叙述是(  )。
①  只有元素a[0][0]可得到初值0
②  此说明语句不正确
③  数组a 中各元素都可得到初值,但其值不一定为0
④  数组a 中每个元素均可得到初值0
【单选题】 若有说明:??int??a〔3〕「4〕={0};则下面正确的叙述是
①  只有元素a[0][0]可得到初值0
②  此说明语句不正确
③  数组a中各元素都可得到初值,但其值不一定为0
④  数组a中每个元素均可得到初值0
【单选题】 有说明语句int b[4][5];void fun(int*,int n);调用函数的正确语句是()
①  fun(b,20);
②  fun(b[0],20);
③  fun(b[0][0],20);
④  fun(b,20);
【判断题】 若有说明int c;则while(c=getchar());是正确的C语句。
①  正确
②  错误
随机题目
【单选题】 These candidates have vague notions of serving the company, [] they have never taken trouble to find out the actual tasks they will be required to do.
①  or
②  and
③  but
④  so
【单选题】 Which sentence is correct?
①  On entering the classroom, the students stood up and said, Good morning!
②  On entering the classroom, the teacher was greeted by the students with Good morning!
【单选题】 When their party came back to the camp site, ours arrrived two hours earlier. Identify the mistake in the sentence.
①  When
②  ours
③  arrived
④  earlier
【单选题】 People dont like to buy books in this bookstore with hard covers. Find any misplaced modifier in the sentence.
①  this
②  with hardcover
【单选题】 People in Anhui are proud of [] they have achieved in the last ten years.
①  that
②  which
③  what
④  how
【单选题】 Which sentence is correct?
①  To look at a map, the importance of this new railway will be seen.
②  You have only to look at a map to see the importance of this new railway.
【单选题】 The actor opened the Bible and begins reading the Song of Solomon. Identify the mistake in the sentence.
①  actor
②  and
③  begins
④  reading
【单选题】 The old man returning home after eight years absence to find that all the neighbors he had known were no longer there. Is this a complete sentence?
①  Yes
②  No
【单选题】 Which sentence is correct?
①  Returning home from work, he saw supper waiting for him in the kitchen.
②  Returning home after work, supper was waiting for him in the kitchen.
【单选题】 A number of foreign scholars [] invited to contribute articles to the magazine.
①  is
②  are