number change using pointers