I was reading some MIPS notes regarding translating C statement to MIPS.
C code of swap function below:
swap ( int v[], int k) { int temp; temp