Answers for "c++ get the first and last char of a string"

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 "c++ get the first and last char of a string"

Browse Popular Code Answers by Language