c++ get position of last character in a string code example Example: how to find last character of string in c++ String[strlen(String) - 1];