Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array question

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
If I have a static array of 50 elements, is there anyway to see how many of the elements I've used without keeping a counter myself?

Thanks.
 
Hi,

If you're filling the elements sequentially, then the only way is to have a function to loop through - returning the next empty element.

Easier to keep a count - methinks.

Regards,

Darrylle "Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top