TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALEX WALKER
from: JONATHAN DE BOYNE POLLARD
date: 1998-01-02 00:55:00
subject: Finding the end of an array?

 AW> [...] if an array is passed to a function, is there a
 AW> way to test for or find the end of the array without having the
 AW> size of the array passed to the function?
Simple answer: No.
Someone is bound to bring up the subject of the housekeeping information that 
most C++ compilers maintain for arrays with heap storage duration in response 
to the above, so I'll reserve the more complicated answer until that time.  
(-:
 ¯ JdeBP ®
--- FleetStreet 1.19 NR
---------------
* Origin: JdeBP's point, using Squish (2:440/4.3)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.