mathsbeauty
Board Regular
- Joined
- Apr 23, 2011
- Messages
- 89
The array for example is
array = {12,,12,0,,12,0,,}
It contains some null empty characters. Here array contains 9 elements. I want to find the index of the last occurrence of element 12. So the answer would be 6 (assuming base 1). How could it be done?
array = {12,,12,0,,12,0,,}
It contains some null empty characters. Here array contains 9 elements. I want to find the index of the last occurrence of element 12. So the answer would be 6 (assuming base 1). How could it be done?
Last edited: