Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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 */
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #array #empty
ADD COMMENT
Topic
Name
1+4 =