I want to get number present at the specific index.

Suppose the number is "123456789" and i need to return the number at position 3 from left.

Should I convert this number to a string and re-convert the char at specific index to integer to get the number value?

Is there any inbuilt function to do so in C++?