I know that it is possible to swap the value of two variables like so
#include void swap(int *x, int *y); int main(){ int x=5,y=10;
No, that's not possible. You don't get to choose the addresses of variables and you can't modify them either.