john120
Banned
- Joined
- Aug 13, 2011
- Messages
- 257
- Helped
- 11
- Reputation
- 22
- Reaction score
- 10
- Trophy points
- 1,298
- Activity points
- 0
How can I know the index of a any number in an array:
example
#define ARRAY_SIZE 9
const int k[]={1,2,3,4,5,6,7,8,9}
can you plz help me to know (display)the index of 8 (it has to be 8)
Thanks!!
example
#define ARRAY_SIZE 9
const int k[]={1,2,3,4,5,6,7,8,9}
can you plz help me to know (display)the index of 8 (it has to be 8)
Thanks!!