lcl wrote:Actually I wrote that function yesterday and thought it won't work but tested it today, and was
happy to see it did work. I hadn't use pointers for ints before and wasn't sure if it was possible.
It was good design. Its clean and does just one thing. That is a good approach to functions. Keep it up!