📌  相关文章
📜  为什么我们使用 void 如果它什么都不返回 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:42.599000             🧑  作者: Mango

代码示例1
void is a type to represent nothing. That is a subtle difference : the representation is still required, even though it represents nothing. This type is used as function's return type which returns nothing. This is also used to represent generic data, when it is used as void* .