有以下程序 main() { char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j; i=sizeof(a); j=strlenmain() { char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j; i=sizeof(a); j=strlen(a);printf("%d,%d\n",i\j);}a9,9 b8,9 c1,8 d9,8

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 09:12:18
有以下程序 main() { char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j; i=sizeof(a); j=strlenmain() { char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j; i=sizeof(a); j=strlen(a);printf(
x){6Ovt?_tWBnbfBBrFbBbBmzz'q qqZg(dZgY+dgVi$jZ+d\&MCI5EG5%&OI'3&KӺ6RR!H($X((XX$` 1gXLb;ladz py9eu]|: P93/94%S@!7u_\giH

有以下程序 main() { char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j; i=sizeof(a); j=strlenmain() { char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j; i=sizeof(a); j=strlen(a);printf("%d,%d\n",i\j);}a9,9 b8,9 c1,8 d9,8
有以下程序 main() { char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j; i=sizeof(a); j=strlen
main()
{ char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j;
i=sizeof(a); j=strlen(a);
printf("%d,%d\n",i\j);
}
a9,9 b8,9 c1,8 d9,8

有以下程序 main() { char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j; i=sizeof(a); j=strlenmain() { char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i;j; i=sizeof(a); j=strlen(a);printf("%d,%d\n",i\j);}a9,9 b8,9 c1,8 d9,8
//答案是:d 9,8
//但程序有错误,正确有是:
#include
#include
void main()
{ char a[ ]={'a','b','c','d','e','f','g','h','\0'};int i,j;
i=sizeof(a); j=strlen(a);
printf("%d,%d\n",i,j);
}