char s[]={'c','o','\0'};
andchar s[]="co";
are equal.--------------------------------------------------------------
char * s = "co"; //this is a constant string
function("abc");
//"abc" is also a constant string. You can not change this string
It's just likeconst char s[]="co";
沒有留言:
張貼留言