A.4,3,2,1 B.4,2,1,3 C.1,3,2,4 D.3,4,2,1
A.LOC(a[0][0])+(j×n+i)×d B.LOC(a[0][0])+(j×m+i)×d C.LOC(a[0][0])+((j-1)×n+i-1)×d D.LOC(a[0][0])+((j-1)×m+i-1)×d
A.p->next=q->next;q->next=p; B.q->next=p->next;p=q; C.p->next=q->next;p->next=q; D.q->next=>next;p->next=q;