TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: George White
from: Kurt Kuzba
date: 1998-12-30 00:36:32
subject: puts()

GW>   As I interpret and describe C data transfer to functions:-
GW>   a) If data is passed by value then there is no direct way
GW>      of changing the original data from within the function.
GW>   b) If data is passed by reference (a pointer to the data)
GW>      then the original data can be modified from within the
GW>      function.
GW>   As a result as strings are manipulable directly from
GW>   within the function I describe than as passed by
GW>   reference.
   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 by dereferencing it. There is some confusion when
   you involve a wider range of languages. In BASIC, for
   instance, you pass by reference and the called function
   has a variable which is an alias for the passed variable.
   C++ also has such an ability. In such cases, your local
   variable in the called function IS the passed variable,
   and the called function now has that variable in scope.

> ] If they could reason there would be no argument.............

---
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)
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: 154/750 222 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™.