题目内容

字符串常量“nice\0meet”在内存中占的字节数是____,长度是____。

查看答案
更多问题

以下程序输出结果是#include#includeint main(){char *p="Good",str[30]="Very";strcpy(str+1,p);str[4]='g';puts(str);return 0;}

int mylength(char *p){ int len=0; while(*p!='\0') { len++; ________ ; } return(len);}main(){ char str1[80]; scanf("%s",str1); printf("str1 的长度=%d",mylength(str1));}

以下程序输出结果是( )#include#includeint main(){char *p="Good",str[30]="Very";strcat(str,p);str[4]='g';printf("%s\n",str+2);return 0;}

以下程序的输出 结果是_______________struct info { int b; int p;}; void f(struct info c) { c.b=3; c.p=4;}int main(){ struct info a={1,2}; f(a); printf("%d%d\n",a.b,a.p);}

答案查题题库