value gets lost in passing to a function

Printable View