i need to use pointer artimetic to change the 3rd element with the 16th element
swap(int*p, int size)
{
int temp = 0;
//also i need to tell the compiler which array to use
//swap 3rd element with 15th
for(int ix =0; ix <size; ix++)
{
*p[2] = temp;
or
*(p+2) = temp;
*p[14] = *p[2];
or
*(p+15) = *(p+2);
*p[2] = *p[14];
or
*(p+2) = *(p+15);
}
}**