當char *s = "hello";後,不能使用s[0]='a';語句進行賦值。這是將提示記憶體不能為"written"。 當用char s[]="hello";後,完全可以使用s[0]=' ...
確定! 回上一頁