c语言中有字符串变量吗

2025-02-28 01:30:37
推荐回答(2个)
回答1:

C中没有字符串变量。C中的字符串是保存在字符数组中的。
如:
char string[] = "hello world";

回答2:

c++ 才有!!c用字符数组,字符指针代替的