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

Browse Popular Code Answers by Language