Skip to content

Files

Latest commit

 

History

History

22

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Exercise 6.22

Write a function to swap two int pointers.

Solution

void swap(int *i, int *j)
{
    int *temp = i;
    i = j;
    j = i;
}