Quantcast
Channel: User Jack - Stack Overflow
Viewing all articles
Browse latest Browse all 40

How to know the end of int* array?

$
0
0

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?


Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>