TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Tom Torfs
from: George White
date: 1998-12-13 08:49:02
subject: puts()

Hi Tom,

You wrote to me:

TT> GW> In this case it is, as in C anything other than an integral data
TT> GW> type is passed by reference.

TT>Mmmh?

TT>AFAIK the only thing in C that's passed by reference are
TT>arrays. Arithmetic data types (including integral AND
TT>floating point types) and structures/unions are all passed
TT>by value.

We've hit the confusion between the two ways of using integral here, my
use above (defined as part of the language) and the language definitions
use (relating to integer data types).

By integral I meant those data types defined as part of the language:-
char, int, short, long, float, double, etc...

I should have said "fundamental" rather than "integral"
to avoid the
confusion. My error, Sorry...

I forgot about structs/unions when I wrote that :-(

I should have defined it the other way about (arrays passed by
reference, everything else by value) and then I wouldn't be causing the
confusion...

George

 * SLMR 2.1a * Wishing you a Happy Christmas and a Peaceful New Year

--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4)
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: 440/4 255/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™.