Results 1 to 2 of 2
Thread: pointers
Hybrid View
-
6th November 2010 18:49 #1Registered User
Join Date: Jun:2010
Location:
Posts: 171
pointers
1 3
row-
col-
fswap -
sswap-
Code:void swapColumns(double a[][6],int row,int col,int fswap,int sswap) { int i; double *px,temp; px=a; for (i=0;i<row ;i++) { temp=*(px i*col+fswap)); *(px i*col+fswap) = *(px i*col+sswa)p; *(px i*col+sswap)=temp; } }Last edited by lludmill; 7th November 2010 at 16:37.
If you understand what you're doing, you're not learning anything.
-
8th November 2010 12:02 #2Registered User
Join Date: Jun:2010
Location:
Posts: 171
.
If you understand what you're doing, you're not learning anything.




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in