TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Kurt Kuzba
from: Bill Birrell
date: 1998-12-31 08:53:00
subject: puts()

Hey Kurt!

 >    That's fine, for personal conprehension, as long as
 > you
 >    know that only values are passed in C. In the case
 > of
 >    a pointer, the value of the pointer is passed, and
 > you
 >    may use that pointer to access the data to which it
 >    points

    And the standard refers to it as a derived type and makes the point
that it is a pointer type derivation and that the object to which the
pointer points is called the referenced type. So the wording of the
standard implies that arrays (including arrays of char) can be passed by
reference. This is one reason why I threw up my hands in horror and backed
away from George's loose and misleading nomenclature. The other is that I
am fed up with being the one that has to point these things out and get
yelled at by the moderator for correcting bloopers by others.

    Having already said that C passes everything by value and nothing by
reference, I thought I had done my duty to the newbies. After all, only
newcomers have difficulty with this. :-)

Happy New Year, Kurt
Bill.

---
* Origin: Meerkats Anonymous (2:2504/200)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 634/397 635/506 728 639/252
SEEN-BY: 670/218
@PATH: 2504/200 213 255/3 1 251/25 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

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