char *s[] = {"black", "white", "pink", "violet"};
时间: 2023-08-13 16:05:17 浏览: 134
这段代码定义了一个指针数组s,其中存储了四个字符串的首地址。这四个字符串分别是"black", "white", "pink", "violet"。\[1\] \[2\]
#### 引用[.reference_title]
- *1* *3* [C/C++:newcode经典例子](https://blog.csdn.net/houzijushi/article/details/115017115)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [C++学习(37)](https://blog.csdn.net/wangdd_199326/article/details/72965437)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文