Answers for "how to see the first and last characters of a string in c++"

C++
0

get first and last character of string c++

auto first_char = str.front()
auto last_char = str.back()
Posted by: Guest on September-15-2020

Code answers related to "how to see the first and last characters of a string in c++"

Browse Popular Code Answers by Language