Ad
  • Default User Avatar

    Not an issue - int is a value type, meaning p is passed by value and not by reference. So you can mutate it all you like inside the method and it will not affect the original parameter from the caller's perspective.