get last char of string c++ code example
Example 1: get first and last character of string c++
auto first_char = str.front()
auto last_char = str.back()
Example 2: how to find last character of string in c++
String[strlen(String) - 1];
auto first_char = str.front()
auto last_char = str.back()
String[strlen(String) - 1];