I have a character array with values
val = HINDALCOJAN2016FUT INFRATELJAN2016FUT INFRATELJAN2016FUT NMDCJAN2016FUT NMDCJAN2016FUT SBINJAN2016FUT SBINJAN2016FUT
I want to get the length of the string of each element in the character array. I know how to get the length using the for loop. Is there any efficient method other than using for loop?
After knowing the length of each string, I need to extract strings from position 1 to length of each string minus 10
Best Answer