Please repost the code with line breaks; it's unreadable as just a single line.
Also please use code blocks for all code.

Regarding your question, I couldn't see "Cash=100" anywhere, but on the face of it (a) yes it should work; (b) why didn't you try it instead of asking here; (c) why would you want to do it this way anyway - what's the benefit of using a pointer?