关于字符串复制
/*test
*/
#include<stdio.h>
#include<string.h>
int main()
{
char *a= "hello";
char b[]= "name";
char c= 'l';
strcat(b, "love");
printf("%s\n", b);
printf("%s\n", a);
printf("%c\n", c);
return 0;
}
为什么在vc++6.0上结果显示不出a,在dev上c的值为'e'