• 2022-05-26 问题

    以下不能正确进行字符串初始化的语句是: A: char str[5] = "good!"; B: char str[5] = {'g', 'o', 'o', 'd', '!'}; C: char str[] = {'g', 'o', 'o', 'd', '!'}; D: char str[] = "good!"; E: char str[8] = "good!"; F: char *str = "good!"; G: char str[8] = {'g', 'o', 'o', 'd', '!'};

    以下不能正确进行字符串初始化的语句是: A: char str[5] = "good!"; B: char str[5] = {'g', 'o', 'o', 'd', '!'}; C: char str[] = {'g', 'o', 'o', 'd', '!'}; D: char str[] = "good!"; E: char str[8] = "good!"; F: char *str = "good!"; G: char str[8] = {'g', 'o', 'o', 'd', '!'};

  • 2022-07-01 问题

    合法的数组定义是( ) 。 A: char a[ ] = {‘s’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’, 0}; B: char s = "string"; C: char a[ ] = {‘s’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’, ‘\0’};<br>char a[] = "string";

    合法的数组定义是( ) 。 A: char a[ ] = {‘s’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’, 0}; B: char s = "string"; C: char a[ ] = {‘s’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’, ‘\0’};<br>char a[] = "string";

  • 2022-05-26 问题

    ( )不能对字符串赋初值.A) char str&#91;5&#93;="good!"; B) char str&#91;&#93;="good!";C) char *str="good!"; D) char str&#91; &#93;={‘g',‘o',‘o',‘d',‘!',‘\0'}; A: char str[5]="good!"; B: char str[]="good!"; C: char *str="good!"; D: char str[ ]={‘g',‘o',‘o',‘d',‘!',‘\0'};

    ( )不能对字符串赋初值.A) char str&#91;5&#93;="good!"; B) char str&#91;&#93;="good!";C) char *str="good!"; D) char str&#91; &#93;={‘g',‘o',‘o',‘d',‘!',‘\0'}; A: char str[5]="good!"; B: char str[]="good!"; C: char *str="good!"; D: char str[ ]={‘g',‘o',‘o',‘d',‘!',‘\0'};

  • 2021-04-14 问题

    char[] chrArray={ 'a', 'b', 'c', 'd', 'e', 'f', 'g'}; char chr=chrArray[6];

    char[] chrArray={ 'a', 'b', 'c', 'd', 'e', 'f', 'g'}; char chr=chrArray[6];

  • 2022-05-26 问题

    下列不能正确进行字符串初始化的是( )。 A: char str[8] = {'g', 'o', 'o', 'd', '!','\0'}; B: char str[8] = "good!"; C: char *str = "good!"; D: char str[] = {'g', 'o', 'o', 'd', '!'};

    下列不能正确进行字符串初始化的是( )。 A: char str[8] = {'g', 'o', 'o', 'd', '!','\0'}; B: char str[8] = "good!"; C: char *str = "good!"; D: char str[] = {'g', 'o', 'o', 'd', '!'};

  • 2022-07-23 问题

    下面代码中能够正确编译的有() A: float f=1.3; B: double D=4096.0; C: byte b=257; D: String s=”1″ E: int i=10; F: char c=”a”;G.char C=4096;H.boolean b=null;

    下面代码中能够正确编译的有() A: float f=1.3; B: double D=4096.0; C: byte b=257; D: String s=”1″ E: int i=10; F: char c=”a”;G.char C=4096;H.boolean b=null;

  • 2022-05-26 问题

    以下不能正确进行字符串赋初值的语句是( )。 A、char str&#91;5&#93;= "good!"; B、char *str="good!"; C、char str&#91;&#93;="good!"; D、char str&#91;5&#93;={'g', 'o','o', 'd'}; A: char *str="good!"; B: char str[5]={'g', 'o','o', 'd'}; C: char str[]="good!"; D: char str[5]= "good!";

    以下不能正确进行字符串赋初值的语句是( )。 A、char str&#91;5&#93;= "good!"; B、char *str="good!"; C、char str&#91;&#93;="good!"; D、char str&#91;5&#93;={'g', 'o','o', 'd'}; A: char *str="good!"; B: char str[5]={'g', 'o','o', 'd'}; C: char str[]="good!"; D: char str[5]= "good!";

  • 2021-04-14 问题

    在以下字符串String的赋值运算中,错误的是( )。? char str[]= { 'S' ,'t', 'r' ,'i','n', 'g',0};|char str[10]= { 'S' ,'t', 'r' ,'i','n', 'g','\0'};|char str[6]= { 'S' ,'t', 'r' ,'i','n', 'g'};|char str[10]= "String";

    在以下字符串String的赋值运算中,错误的是( )。? char str[]= { 'S' ,'t', 'r' ,'i','n', 'g',0};|char str[10]= { 'S' ,'t', 'r' ,'i','n', 'g','\0'};|char str[6]= { 'S' ,'t', 'r' ,'i','n', 'g'};|char str[10]= "String";

  • 2022-05-26 问题

    执行下面的初始化语句,( )保存的不是字符串。 A: char str[10]= { 'S' ,'t', 'r' ,'i','n', 'g','\0'}; B: char str[10]= "String"; C: char str[6]= { 'S' ,'t', 'r' ,'i','n', 'g'}; D: char str[]= { 'S' ,'t', 'r' ,'i','n', 'g',0};

    执行下面的初始化语句,( )保存的不是字符串。 A: char str[10]= { 'S' ,'t', 'r' ,'i','n', 'g','\0'}; B: char str[10]= "String"; C: char str[6]= { 'S' ,'t', 'r' ,'i','n', 'g'}; D: char str[]= { 'S' ,'t', 'r' ,'i','n', 'g',0};

  • 2022-06-03 问题

    与char string&#91;&#93;={"He Jing"};等价的语句是: A: char string[7]={'H','e',' ','J','i','n','g'}; B: char string[ ]={'H','e',' ','J','i','n','g'}; C: char string[8]={"He Jing"}; D: char string[7]={"He Jing"}; E: char string[8]="He Jing";

    与char string&#91;&#93;={"He Jing"};等价的语句是: A: char string[7]={'H','e',' ','J','i','n','g'}; B: char string[ ]={'H','e',' ','J','i','n','g'}; C: char string[8]={"He Jing"}; D: char string[7]={"He Jing"}; E: char string[8]="He Jing";

  • 1 2 3 4 5 6 7 8 9 10