Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Swap(int *firstVal, int *secondVal)
- {
- int tempVal = *firstVal;
- *firstVal = *secondVal;
- *secondVal = tempVal;
- }
- int fv = 6, sv = 10;
- Swap(&fv, &sv);
- printf(“Values: (%d, %d)\n”, fv, sv);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement