【单选题】【消耗次数:1】
下面是对字符数组str 的初始化语句,其中不正确的是()。
char str[5]={abcd};
char str[5]={’a’,’b’,’c’,’d’};
char str[]=abcd;
char str[5];str=abcdef;
参考答案:
复制
纠错
相关题目
【判断题】 char[] str=abcdefgh;
①  正确
②  错误
【单选题】 已有定义char str1[15]={“computer”} , str2[15] ; 则语句用法正确的是()。
①  str2=str1;
②  str2=science;
③  scanf(%s,str2);
④  printf(%s,str1);
【判断题】 String str=abcdefghi;char chr=str.charAt(9);
①  正确
②  错误
【单选题】 对于以下结构定义:struct{intlen;char*str;}*p;p->str++中的++加在()
①  指针str上
②  指针p上
③  str所指的内容上
④  以上均不是
【简答题】 下面程序的运行时,输入CLanguage↙,输出是[填空1]。#includestdio.hvoid main( ){ char str[30];scanf(%s,str); printf(%s,str);}
【单选题】 文本文件quiz.txt的内容为"Programming"(不包含引号),以下程序段的运行结果是()。FILE*fp;char*str;if((fp=fopen("quiz.txt","r"))!=NULL)str=fgets(str,7,fp);printf("%s",str);
①  Progr
②  Progra
③  Program
④  Programming
【判断题】 String str=abcedf; int length=str.length;
①  正确
②  错误
【单选题】 若定义:string str; 当语句cin>>str; 执行时,从键盘输入:Microsoft Visual Studio 0! 所得的结果是str=( )。
①  Microsoft Visual Studio 0!
②  Microsoft
③  Microsoft Visual
④  Microsoft Visual Studio 0
【单选题】 有如下程序段:Dim str1 As String * 5 Str1= ”Visual Basic”当该程序段被执行完时,变量Str1的值是()。
①  ”Visual ”
②  “ Visua ”
③  “ V ”
④  “ Visual Basic ”
【单选题】 有如下程序段:Dim str1 As String * 5 Str1= ”Visual Basic”当该程序段被执行完时,变量Str1的值是()。
①  ”Visual ”
②  “ Visua ”
③  “ V ”
④  “ Visual Basic ”
随机题目
【判断题】 In William Cullen Bryant’s poem “Thanatopsis”, the title means view of death.
①  正确
②  错误
【单选题】 About the novel The Scarlet Letter, which of the following statements is NOT right?
①  Its very hard to say that it is a love story or a story of sin.
②  Its a highly symbolic story and the author is a master of symbolism.
③  Its mainly about the moral, emotional and psychological effects of the sin upon the main characters and the people in general.
④  In it the letter A takes the same symbolic meaning throughout the novel.
【单选题】 In the novel Moby Dick, the rebellious struggle of Captain Ahab was thought to be against ____.
①  the white whale
②  the gliding great demon of the seas of life
③  the overwhelming, mysterious vastness of the universe and the awesome forces
④  the savage harpooners and the motley crew
【单选题】 The Romantic Period in American literature stretches from the end of the 18th century to the outbreak of _________.
①  the Revolutionary War
②  the Civil War
③  the War for Independence
④  World War
【单选题】 As a great innovator in American literature, Walt Whitman wrote his poetry in an unconventional style which is now called free verse, which is ______.
①  lyrical poetry with chanting refrains
②  poetry without a fixed beat or regular rhyme scheme
③  poetry without rhymes at the end of the lines but with a fixed beat
④  poetry in an irregular metric form and expressing noble feelings
【单选题】 Washington Irving’s_________ became the first work by an American writer to win financial success on both sides of the Atlantic in the first half of the 19th century.
①  Charles the Second
②  Sketch Book
③  The Scarlet Letter
④  Moby Dick I
【单选题】 In William Cullen Bryant’s poem “Thanatopsis”, the title means______.
①  view of life
②  view of death
③  view of youth
④  world outlook
【单选题】 At the Reason and Revolution Period, Americans were influenced by the European movement called ______.
①  Chartist Movement
②  Romanticism Movement
③  Enlightenment Movement
④  Modernist Movement
【单选题】 The eminent English critic and poet, Matthew Arnold, called___“the most perfect brief poem in the language.”
①  Nature
②  To a Waterfowl
③  To Helen
④  The Wild Honey Suckle
【单选题】 Which of following can be said of the common features which are shared by the English and American Romanticists?
①  An increasing emphasis on the free expression of emotions.
②  An increasing attention to the psychic states of their characters.
③  An increasing emphasis on the desire to return to nature.
④  Both A and B.