120k views
1 vote
This function removes the white spaces and other predefined characters from both sides of a string

Select one:

a. strcmp()

b. ltrim()

c. trim()

d. rtrim()

User Frolik
by
5.2k points

1 Answer

6 votes

Answer:

trim()

Step-by-step explanation:

trim() is predefined function which is used to remove white spaces and other predefined characters from both sides of the string.ltrim() and rtrim() also removes white spaces and predefined characters from the string but from left and right respectively.But trim() function removes from both ends.Hence we conclude the answer is trim().

User ByteEater
by
5.7k points