Hey guys, here's a newbie question:
suppose I have a ptr to an int, and I allocate memory to it dynamically.
after all the allocations are done, how can I get the number of ints (elements) in my array?
i feel like I can do this with some fancy sizeof stuff, instead of maintaining a counter..
Thanks for the help!!