View Single Post
Join Date: Jun 2005
Posts: 2
Reputation: Becuzz is an unknown quantity at this point 
Solved Threads: 0
Becuzz's Avatar
Becuzz Becuzz is offline Offline
Unverified User

Re: get length of a dynamic array

 
0
  #6
Jun 1st, 2005
The easiest way to get the length of a dynamic array is this

sizeof(array)/sizeof(arraytype)

where array is your dynamic array and arraytype is the data type (for instance int)

Hope this helps
Reply With Quote