Answers for "isempty array c"

C
0

c check if array is empty

//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 */
Posted by: Guest on June-14-2020

Code answers related to "C"

Browse Popular Code Answers by Language