#include <stdio.h>

    int y=0;
    int n;

int sp(int * a, int * b,  int * c)
{
    
    //int * a1 = a;
    //int * b1 = b;
    n = *b;
    //int * c1 = c;

    *b = *a;
    *a = *c;
    *c = n;
}

int main() {
   

    int a=1;
    int b=2;
    int c=3;

    sp(&a, &b, &c);

    printf("%d %d %d", a, b ,c);
    /*
    for(int i=0; i<3; i++)
    {
        y = *ptr;
        *ptr = *ptr2;
        *ptr2 = y;
        ptr ++;
        ptr2 --;
    }

    for(int i=0; i<6; i++)
    {
        printf("%d ", arr[i]);
    }
    return 0;vgksc@naver.com  viomot2a6!!
    */
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: