char*s="abcde";s+=2;printf("%d",s),求结果
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/06/21 16:37:58
char*s="abcde";s+=2;printf("%d",s),求结果
![char*s=](/uploads/image/z/19633891-67-1.jpg?t=char%2As%3D%22abcde%22%3Bs%2B%3D2%3Bprintf%28%22%25d%22%2Cs%29%2C%E6%B1%82%E7%BB%93%E6%9E%9C)
char*s="abcde";s+=2;printf("%d",s),
刚开始s指向的是a
s+=2之后指向c
printf("%d",s),你这里应该写错了吧这个是输出S的值.但是这个值我们是不知道的
printf("%d",*s),这样的话是输出S指向的那个东西的
是输出‘c’对应的数字
是99
每一个字符都有对应的数值的.正所谓万物皆数,这些数符对应什么值书上都有的
刚开始s指向的是a
s+=2之后指向c
printf("%d",s),你这里应该写错了吧这个是输出S的值.但是这个值我们是不知道的
printf("%d",*s),这样的话是输出S指向的那个东西的
是输出‘c’对应的数字
是99
每一个字符都有对应的数值的.正所谓万物皆数,这些数符对应什么值书上都有的
#include main() { char *p="abcde\ofghjik\0"; printf("%d\n",s
main(){ char *s,*s1="Here";s=s1;while(*s1)s1++;printf("%d\n"
main() { char s[]="\\141\141abc\t" ; printf("%d",strlen(s));
char s[]=" an apple" ; printf(" %d\n",strlen(s)); A)7 B)8 C)
#include main() {char *s={"abc"}; do { printf("%d",*s%10); +
main() { char s[]="stop\0\n\""; printf("%d\n",strlen(s)) }
设有定义:char s[12]={"string"};则printf("%d",strlen(s));的输出值是多少?
Char s[]="\113vwxyz\x41"; printf("%d\n",strlen(s)); 为什么结果是7
C语言题目求解char[ ]="\t \chinese\ \girl\n" printf("%d",strlen(s))
设有一下程序 int x=0 ,s=0; while(!=0)s+=++x; printf(''%d'',s);求结果
printf("%s%s%s%d%d%d\n",printf("\n");
char *p[12]={1,2,3,4,5,6,7,8,9,10,11,12}; printf("%s\n",*(p+