The Method use to remove white space from string?
A. Split()
B. Substring()
C. Trim()
D. TrimStart()
Answer:C
The Method use to remove white space from string?
A. Split() B. Substring() C. Trim() D. TrimStart()
Explanation: Perfectly removes a whitespace from string whereas TrimStart() removes a string of characters from the end of the string.