char const *argv[])
时间: 2023-11-01 20:08:04 浏览: 87
char const *argv[]是C语言中main函数的参数之一。它是一个指向字符常量的指针数组,用于接收命令行参数。
具体来说,argc表示命令行参数的总个数,包括程序本身的名称。而argv是一个指针数组,每个指针指向一个字符常量,代表一个命令行参数的值。argv指向的是程序的全名,后面的元素依次指向用户输入的其他参数。通过argc和argv可以方便地获取和处理命令行参数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [int main(int argc, char const *argv[ ])](https://blog.csdn.net/sinat_28924869/article/details/120974752)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [C语言中 int main(int argc,char *argv[])的两个参数详解](https://download.csdn.net/download/weixin_38709312/13989483)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文