| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Pointer Arrays |
JB> int foobar[] = {1, 2, 3, 4, 5};
JB> int size = sizeof(foobar) / sizeof(int);
JB>
JB> with size coming to 5, but it didn't work on passed arrays.
The called function receives a pointer to the first element in
a contiguous list of some type. A function will probably just
give you the size of a pointer or 0 meaning I don't know what
the size is.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350) |
|
| 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™.