I am learning C, and am am trying to create my own "swap" function for practice that takes in two numbers and puts them in two different variables. I then set one pointer to each. This is where I get stuck.
What should I pass into the function parameters: by this I mean do I pass say, *num1, or the address it points to, num1. I am confused. Please provide code examples.