Hi Folks
How to find the size of dynamic Array.....
Can sizeof be used or .. .
Hi Folks
How to find the size of dynamic Array.....
Can sizeof be used or .. .
Keep track of the size yourself.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
You keep hold of the variable you used to call malloc with in the first place.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.