this code seems to work, but i have to get it to use pointers as opposed to arrays.
Can you guys see what changes i'd have to make for this to work with pointers (ideally i'd like their to be no [] anywhere)
Code:int maxarray(int s, int d[]){ int lo = 0; int i = 0; for(; i< s;i++) { if(d[i]>d[lo]) {lo = i;} } return (d[lo]); }



LinkBack URL
About LinkBacks
.



