c nullptr
时间: 2024-05-18 09:13:57 浏览: 68
qwe.rar_visual c
nullptr是C++11引入的新关键字,用于表示指针的空值。在使用nullptr表示指针空值时,不需要包含头文件。与以前的NULL相比,nullptr具有更好的健壮性。可以被隐式转换成任意的指针类型。例如,可以将nullptr赋值给int*、char*或double*等类型的指针变量。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【C++】nullptr C++中的空指针(C++11)](https://blog.csdn.net/qq_65207641/article/details/128925654)[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++11新特性之nullptr](https://blog.csdn.net/weixin_43340455/article/details/124888946)[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 ]
阅读全文