[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