TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DAVID TORREZ
from: ERIK WARMELINK
date: 1997-05-11 06:26:00
subject: Pointer Arrays

David, je wrote to me:
-> JB> void battle(int id[])
-> I am afraid this doesn't do what you want. sizeof(id) is not the size
-> of the array you passed, it is the size of an int pointer.
 DT> sizeof(int) will return a 2 when using a 16-bit compiler,
 DT> and 4 when using a 32-bit compiler.
That may be true (AFAIK there's no obligation for it, but it is more 
efficient). Anyway, id is a pointer to int.
Bye,
 Erik 
---
---------------
* Origin: WarmelinkE@vertis.nl (2:282/608.60)

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