char x[ ]=“abcdefg”; char y[ ]={‘a’,‘b’,‘c’,‘d’,‘e...答:第一个8,第二7,因为第一个要加上'\0'。main(){char x[]="abcdefg";char y[]={'a','b','c','d','e','f','g'};printf("%d",strcmp(x,y));getch();} a数组的长度是6,b数组的长度是7。在C语言中没有专门的字符串变量,通常用一个字符数组来存放一个字符串。字符串总是...
c语言中指针数组和字符串数组的区别 ,高手请进!答:include "stdio.h"include "string.h"void shellsort(char v[][10], int n);void writeline(char linp[][10],int n);main(){ char line[][10]={"C++","Fortran","Basic","Pascal","Foxbase"};int n=5;shellsort(line,n);writeline(line,n);} shellsort(char v[][10], int n...