I'm making a dynamic array with int*
data type using malloc()
. But the problems is, how to know end of array?
There no an equivalent to \0
for int*
data type,so, how to do this? Pass size as out parameter of function?
I'm making a dynamic array with int*
data type using malloc()
. But the problems is, how to know end of array?
There no an equivalent to \0
for int*
data type,so, how to do this? Pass size as out parameter of function?