How to find all lowercase characters in a string with C

1 Answer

0 votes
#include <stdio.h>

int main()
{
    char str[] = "JavaScript C C++ NodeJS";

    for (int i = 0; str[i]; i++) {
        if (str[i] >= 'a' && str[i] <= 'z')
            printf("%c ", str[i]);
            
    }

    return 0;
}




/*
run:

a v a c r i p t o d e 

*/

 



answered Apr 20, 2022 by avibootz

Related questions

1 answer 89 views
1 answer 124 views
1 answer 122 views
1 answer 136 views
1 answer 129 views
2 answers 155 views
1 answer 109 views
...