【单选题】【消耗次数:1】
在下列的字符数组定义中,存在语法错误的是?
char a[20]=abcdefg
char a[]=x+y=55.
char a[15]={1,2
char a[10]=5
参考答案:
复制
纠错
相关题目
【单选题】 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};
【单选题】 在下面的字符数组定义中,哪一个有语法错误()
①  char a[20]=”abcdefg”;
②  char a[]=”x+y=55.”;
③  char a[15];
④  char a[10]=’5’;
【单选题】 在下面的字符数组定义中,哪一个有语法错误。()。
①  char a[20]=”abcdefg”;
②  char a[]=”x+y=55.”;
③  char a[15];
④  char a[10]=’5’;
【单选题】 在下面的字符数组定义中,哪一个有语法错误(????)
①  char a[20]=”abcdefg”;
②  char a[]=”x+y=55.”;
③  char a[15];
④  char a[10]=’5’;
【单选题】 在下面的字符数组定义中,哪一个有语法错误。()。
①  char a[20]=”abcdefg”;
②  char a[]=”x+y=55.”;
③  char a[15];
④  char a[10]=’5’;
【单选题】 以下函数的返回结果是() int function(char *x) { char *p=x; while(*p++); return(p-x-1); }
①  求字符串的长度
②  将字符串x连接到字符串p后面
③  将字符串x复制到字符串p中
④  将字符串x反向存放
【单选题】 以下函数的返回结果是(????) int function(char *x) { char *p=x; while(*p++); return(p-x-1); }
①  求字符串的长度
②  将字符串x连接到字符串p后面
③  将字符串x复制到字符串p中
④  将字符串x反向存放
【单选题】 以下函数的返回结果是( )。 int function(char *x) { char *p=x; while(*p++); return(p-x-1); }
①  求字符串的长度B.将字符串x连接到字符串p后面
②  将字符串x复制到字符串p中
③  将字符串x反向存放
【单选题】 以下函数的返回结果是( )。 int function(char *x) { char *p=x; while(*p++); return(p-x-1); }
①  求字符串的长度B.将字符串x连接到字符串p后面
②  将字符串x复制到字符串p中
③  将字符串x反向存放
【单选题】 已有定义char str1[15]={“computer”} , str2[15] ; 则语句用法正确的是()。
①  str2=str1;
②  str2=science;
③  scanf(%s,str2);
④  printf(%s,str1);
随机题目
【单选题】 Theresearchissodesignedthatonce______nothingcanbedonetochangeit.
①  begins
②  having begun
③  beginning
④  begun
【单选题】 Many a man______ the interest novel.
①  are read
②  is read
③  have read
④  has read
【单选题】 Borishasbrains.Infact,Idoubtwhetheranyoneintheclasshas_______IQ.
①  a high
②  a higher
③  the higher
④  the highest
【单选题】 —WhatdoyouthinkmadeMarysoupset?—______herbicycle.
①  As she lost
②  Lost
③  Losing
④  Because of losing
【单选题】 Hehasspentallhislifeworkingwithmentally______people.
①  disabled
②  discussed
③  naked
④  abolished
【单选题】 Doctors have said that as many as 50% of patients dont take medicine ______.
①  like directed
②  to be directed
③  as directed
④  so that directed
【单选题】 After filling out this form, please dont forget to______ your name.
①  sign
②  sigh
③  scribble
④  jot
【单选题】 —Why didnt you come to join her party?—I______, but I had to deal with something urgent.
①  would have
②  should
③  would do
④  was going to have
【单选题】 They couldn’t ______ to fly out to see us, and we couldnt either. We were all poor then.
①  offer
②  afford
③  provide
④  supply
【单选题】 Youve got a divorce? Why did he decide to______ you after seven years together?
①  keep company with
②  part company with
③  keep in touch with
④  stay in touch with