Nov 23, 2014 at 10:53am
I tried to use find() function but it returns the element not the position.
1 2 3 4 5
|
int ar[5]={1,2,3,4,3};
int *l;
l=find(ar, ar+5, 3);
cout<<*l<<endl;
|
is there any function that returns the position?
Last edited on Nov 23, 2014 at 10:54am
Nov 23, 2014 at 11:06am
your information is not detail...
what result you expected for...?