设有下列的程序段: char str[]="Hello World"; char*ptr; ptr=str; 执行上面的程序段后,*(ptr+10)的值为( )。A.'\0'B.'0'C.不确定的值D.'0'的地址

设有下列的程序段: char str[]="Hello World"; char*ptr; ptr=str; 执行上面的程序段后,*(ptr+10)的值为( )。

A.'\0'

B.'0'

C.不确定的值

D.'0'的地址


相关考题:

设有下列程序段: char str[]="HelloWorld": char* plr; ptr=str: 执行上面的程序段后,*(ptr+10)的值为( )。A. \0B.0C.不确定的值D.0的地址

设有下列的程序段:char str[]="HelloWorld";char*ptr;ptr=str;执行上面的程序段后,*(ptr+10)的值为( )。A.'\0'B.'0'C.不确定的值D.'0'的地址

设有如下的程序段: char str[]="HelloWorld"; char*ptr; ptr=str; 执行上面的程序段后,*(ptr+10)的值为( )。A.'\0'B.'0'C.不确定的值D.'0'的地址

设有下列的程序段: char str[]="HelloWorld"; char*ptr; ptr==str; 执行上面的程序段后,*(ptr+10)的值为( )。A.'\0'B.'0'C.不确定的值D.'0'的地址

设有如下的程序段: char str[]="Hello"; char *ptr; ptr=str; 执行完上面的程序段后,*(ptr+5)的值为( )。A.'o'B.'\0'C.不确定的值D.'o'的地址

设有下列程序段:char str[]=HelloWorld:char* plr;ptr=str:执行上面的程序段后,*(ptr+10)的值为( )。A. \0 B.0C.不确定的值D.0的地址

设有如下程序段: char str[]=”World”; char*ptr=str; 执行上面的程序段后,*(ptr+5)的值为 ______。A.‘o’B.‘0’C.不确定的值D.‘o’的地址

下列程序的输出结果是 include usingnamespacestd; int main () {chara []="Hello,W 下列程序的输出结果是 #include <iostream> using namespace std; int main () { char a [] = "Hello,World": char*ptr = a; while (*ptr) { if(*ptr>= 'a' *ptr <='z' cout<<char{*ptr+'A'-'a'); else cout<<*ptr; ptr++; } return 0; }A. HELLO. WORLDB. Hello, WorldC. hELLO, wORLDD. hello, world

设有如下程序段: char str[]="World": char*ptr=str; 执行上面的程序段后,*(ptr+5)的值为 ______。A.‘0’B.‘\0’C.不确定的值D.‘o’的地址