How to get the "n"th position in an array from a given key position in circular clockwise or anticlockwise?
say you have an array of english alphabet a-z and I am at pointer 's'. from there I want to go upwards by 10 reaching 'c'.
same way -5 from 'b' to reach 'x'
I can do it using if condition when the "addition" or "subtraction" reaches negative or higher than 25 elements, but I need a better solution than that.
Thanks,
JB