how to find the last element of String in C++ code example Example: how to find last character of string in c++ String[strlen(String) - 1];