string - concatenate char array in C - Stack Overflow

string - concatenate char array in C - Stack Overflow

瀏覽:327
日期:2026-04-23
I have a char array: char* name = "hello"; No, you have a character pointer to a string literal. In many usages you could add the const modifier, depending on whether you are more interested in what name points to, or the string value, "hello". You should...看更多