Reply To: Getting the length of an array

Home Forums C Programming Getting the length of an array Reply To: Getting the length of an array

#3444

Humayan
Member

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 ).

0 Shares
Share
+1
Tweet
Share
Stumble