TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: KEN WAUGH
from: DANIEL JONES
date: 1997-07-23 21:10:00
subject: Sunir ventures into

KW>  SS> /* 1. Passing by reference */
KW>  SS> void foo( int& HeyIMagicallyAlterYourVariableWithoutTellingYou
KW>  SS> {
KW> You aren't gonna like this one bit then... What you mention above pa
KW> reference, I posted a C example of it happening just this week. C do
KW> also. Check out the Pointer cheat sheet I posted it gives you all th
KW> possibilites.

I may end up hating myself for starting this back up again.  If not,
others will definitely hate me for it. Oh well. Here goes.

C does not support references.  It does supports passing pointers, which
the programmer can then use to accomplish the same thing a reference
accomplishes. Very similar, but not the same.
Regards,
Daniel              ddjones@pinn.net
---
 þ RM 1.31 1604 þ The brain is only as strong as its weakest think.
---------------
* Origin: Selective Source Virginia Beach, VA (757)471-6776 (1:275/102)

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