How to know the current bounds of HEAP.

Can you tell some good websites where I can learn it? And my main concern is that I have to specify the length of the character array at the time of declaration which is hard for me to predict.

BulldogLowell:
why chase rainbows?

It's more of a problem that I want to solve, like doing a project.

Thanks.