![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
设有如下的程序段: char str[]="HelloWorld"; char*ptr; ptr=str; 执行上面的程序段后,*(ptr+10)的值为()。
A.'\0'
B.'0'
C.不确定的值
D.'0'的地址
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_ckda.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_wyda.png)
- · 有3位网友选择 B,占比37.5%
- · 有2位网友选择 A,占比25%
- · 有2位网友选择 D,占比25%
- · 有1位网友选择 C,占比12.5%
A.'\0'
B.'0'
C.不确定的值
D.'0'的地址
设有如下程序段
char str[]="Hello!";
char *ptr;
ptr=str;
执行完以上程序段后*(ptr+6)的值为()
A.'o'
B.'\0'
C.'\o
D.'o'
设有如下程序段: char str[]=”World”; char*ptr=str; 执行上面的程序段后,*(ptr+5)的值为 ______。
A.‘o’
B.‘0’
C.不确定的值
D.‘o’的地址
A.'s'
B.'i'
C.'h'的地址
D.'h'
设有如下的程序段: char str[]="Hello"; char *ptr; ptr=str; 执行完上面的程序段后,*(ptr+5)的值为()。
A.'o'
B.'\0'
C.不确定的值
D.'o'的地址
A.’o’
B.’ ’
C.不确定的值
D.’o’ 的地址
设有如下程序段: char str[]="World": char*ptr=str; 执行上面的程序段后,*(ptr+5)的值为 ______。
A.‘0’
B.‘\0’
C.不确定的值
D.‘o’的地址
设有下列程序段: char str[]="HelloWorld": char* plr; ptr=str: 执行上面的程序段后,*(ptr+10)的值为()。
A. \0
B.0
C.不确定的值
D.0的地址
A.'\0'
B.'0'
C.不确定的值
D.'0'的地址
设有如下函数定义,则输出结果为______。 char*fun (char*str) {char*p=str; while(*p) { if(*p>'d') continue; p++; } return p; } main() { printf("%s\n",fun("welcome!")); }
A.welcome!
B.come!
C.w
D.程序陷入死循环中
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!