islower(): This function is available in the file ctype.h. This function checks whether the given character is a lowercase letter or not. If the character is a lowercase letter then it returns true otherwise, it returns false (0). It returns a value different from zero (i.e. true) if indeed c is a lowercase alphabetic letter. Zero (i.e. false) otherwise.
Parameters: One parameter is required for this function.
arg: The character to be checked.
Syntax:
islower(arg)
For Example:
islower('a') = > It return true.
islower('A') = > It return false(0).
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){char ch = 'a';cout << islower(ch) << "\n";return 0;}
No comments:
Post a Comment