Here’s an option I’ve done for IsLowercase().
Some thoughts on my code include:
- I feel I should have an ‘else’ statement but feel it would just do the same as leaving the for loop and it would be extra unneccessary code.
- This method will consider \0 and spaces as not lowercase. Is this the result we’re after or should it let them through. It wasn’t specified.
- Have I condensed the for and if statements correctly?
Thanks for your input.