Write a C program to trim trailing/end white space characters in a string using loop. How to remove trailing blank space characters from a given string using loop in C programming. Logic to delete all trailing white space characters from a given string in C.
Example
Input
Input string: "Lots of trailing white spaces. "
Output
String after removing trailing white spaces: "Lots of trailing white spaces."