Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
185 B
3
Indexable
Never
void mySwap(int* a, int* b)
{

}

int main()
{

    int x = 10;
    int y = 2;
    
    printf("Before: x: %d y: %d\n",x,y);

    mySwap(&x,&y);

    printf("After: x: %d y: %d",x,y);
}
Leave a Comment