更多"设有下列的程序段: char str[]='HelloWorld';"的相关试题:
[单项选择]设有下列程序段:
char str[]="HelloWorld";
char *ptr;
ptr=str;
执行上面的程序段后,*(ptr+10)的值为( )。
[单项选择]设有下列程序段:
char str[]="HelloWorld";
char*ptr;
ptr=str;
执行上面的程序段后,*(ptr+10)的值为( )。
[单项选择]设有下列的程序段: char str[]="HelloWorld"; char*ptr; ptr=str; 执行上面的程序段后,*(ptr+10)的值为( )。
[单项选择]设有如下的程序段:
char str[]="HelloWorld";
char*ptr;
ptr=str;
执行上面的程序段后,*(ptr+10)的值为( )。
[单项选择]设有下列的程序段:
char str[]="HelloWorld";
char*ptr;
ptr=str;
执行上面的程序段后,*(ptr+10)的值为( )。
[单项选择]设有如下程序段 char str[]="Hello!"; char *ptr; ptr=str; 执行完以上程序段后*(ptr+6)的值为( )
[单项选择]设有如下程序段:
char str[]=”World”;
char*ptr=str;
执行上面的程序段后,*(ptr+5)的值为 ______。
A. ‘o’
B. ‘0’
C. 不确定的值
D. ‘o’的地址
[单项选择]设有如下的程序段: char str[]="Hello"; char *ptr; ptr=str; 执行完上面的程序段后,*(ptr+5)的值为( )。
[单项选择]设有下列的程序段: char str[]="Hello World"; char*ptr; ptr=str; 执行上面的程序段后,*(ptr+10)的值为( )。
[单项选择]以下程序段的输出结果是( )。
char str[] = "BCDE",*ptr=str;
cout<<*(p+4)<<end1;
A. 字符E的地址
B. 0
C. 69
D. 不确定
[单项选择]以下程序段输出的结果是( )。
char str[]="BCDE",*ptr=str;
cout<<*(ptr+4)<<endl;
A. 0
B. 69
C. 字符E的地址
D. 一个空字符