Trying to add stuff into an array with custom methods(low level/beginner stuff), but the changes dont get reflected, for example if I make a swap program, which switches values of a and b:
int c=0;
c=a;
a=b;
b=c;
}```
when I print them in main, no change is reflected, how do I make it so that changes are reflected?