saving . . . saved Strings has been deleted. Strings has been hidden .
Strings
Title
Question
<span style="color: rgb(68, 68, 68); font-family: arial; font-size: 14px; font-weight: 700;">How can I remove the trailing spaces from a string?</span>

C-and-Cpp Strings 08-09 min 40-50 sec 29-02-20, 2:48 p.m. profmuniasamy

Answers:

This is one of the areas where there is significant difference between a language like python and C/C++.  In python, you can do this in a single line.  In C/C++, you will have to write code to loop through the string (as an array of characters), and create a new string.
29-02-20, 2:58 p.m. bhaskar76


Log-in to answer to this question.