What would be better practice when giving a function the original variable to work with:
unsigned long x = 4; void func1(unsigned long& val) { val
Use a reference when you can, use a pointer when you have to. From C++ FAQ: "When should I use references, and when should I use pointers?"