Home › Forums › C Programming › Getting the length of an array › Reply To: Getting the length of an array
September 4, 2008 at 11:45 am
#3444
Humayan
Participant
I don’t think you can information about data requested from the “heap” . The operating system simply returns an address of the dynamic memory from the heap area of the correct size , so I don’t think there is any way to recover this information ( so sending the length of the vector to a function is a good idea ).