Thread: strlen() C++
View Single Post
Old March 28th, 2005, 09:49 AM     #2 (permalink)
VHockey86
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,334
I'm assuming it just iterates through the character array until it reaches the end... incrementing a counter on each iteration. Not totally sure although because I normally just use java.

Does every array contain a "size" data member in C++?
I know in java you could simply say "myCharArray.size" if you had a character array instead of the regular string class.
VHockey86 is offline   Reply With Quote