Your use of pointers looks technically correct in that it would work, but it conveys no advantage in this situation. Indeed, in fact you've consumed extra memory to store the pointer and extra code to point it to the target variable. If you were using the pointer to move through a buffer it might make more sense, but here, it's not doing you any good.