Answers for "get first and last character of string 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 "get first and last character of string c++"

Browse Popular Code Answers by Language