changing a value of a variable

François Pinard pinard at iro.umontreal.ca
Wed Jan 30 00:15:35 EST 2002


[Aahz Maruch]

> >> void assign(int *x)
> >> {
> >>   *x = 1;
> >> }

> >>    assign(n);

> [...] I think you need to use assign(&n) in order for the code to work.

Agreed.  Let's read the spirit of the request, more than its letter! :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard




More information about the Python-list mailing list