[CSUSB]
>> [CNS]
>> [Comp Sci Dept]
>> [R J Botting]
>> [CSci620]
>>
lab10
[Source]
Recode it using pass by value of a pointer. In other words, you may not put & in the header of the function, and when the program is changed it still does the same thing.
Note. Call by name is alive and well in C++, if you have time look at [ name.cpp ] for an example of Jensen's device from Algol 60.
. . . . . . . . . ( end of section CSci620 Laboratory 10 Functions in C++) <<Contents | Index>>