📌  相关文章
📜  c 检查数组是否为空 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:42.860000             🧑  作者: Mango

代码示例1
//there is no "empty" in C. There is always a fixed number of elements with some value.
//However, you can implement it yourself by initializing each element to NULL
char* results[10] = { NULL };
/* some code */
if(results[i] == null) /* this is an empty element */