以下代码段打印的结果为_char s[] = "hello world";printf("%s ",s);s[5] = '\0';printf("%s", s);
查看答案
以下程序的输出结果是#include #include int main(){char str[50]="Morning",*p=str+2;printf("%s\n",str);strcpy(p,"Good");printf("%s\n",str);return 0;}
若字符串首地址为0x000657b0,n的ASCII码为110,则下述代码片段输出结果为( )char *s = "programs";s+=6;printf("%s ",s);printf("%c ",*s);printf("%d ",*s);printf("%x ",s);
字符串常量“nice\0meet”在内存中占的字节数是____,长度是____。
以下程序输出结果是#include#includeint main(){char *p="Good",str[30]="Very";strcpy(str+1,p);str[4]='g';puts(str);return 0;}