比如返回值為char*的某個函數(shù)char* a=(char*)malloc(sizeof(char)*3)我可以假設(shè)我這樣賦值 *a="abc", 再返回a
請問a最后會自動加個'\0'結(jié)尾嗎?
慕村225694
2022-08-12 11:07:52