Space Checker | Sololearn: Learn to code for FREE!


Space Checker How do i write it correctly(so program can check if there is a " " in your input)

9/26/2018 12:16:11 PM

Oleg Storm

2 Answers

New Answer


If I have understood you correctly you are asking to check for a space in string in a better way? If that's the case, there's another way to to check for space. You can use isspace() function included in the cctype library. For more information visit this link:


nautaxh thanks, that is exactly what i want😊