iswlower() function in C/C++

CC++Programming

The function iswlower() is a built-in function in C/C++. It checks whether the wide character is in lower case or not. It is declared in “cwctype” header file in C++ language while “ctype.h” in C language. It takes a single character which is known as wide character. It will return zero(0), if the character is not a lower case character. It will return non-zero value, if character is lower case.

Here is the syntax of iswlower() in C/C++ language,

int iswlower(ch);

Here is an example of iswlower() in C++ language,

Example

 Live Demo

#include <cwctype>
#include <iostream>
using namespace std;
int main() {
   wchar_t c = 'S';
   if (iswlower(c))
   wcout << c << ", The character is a lowercase character ";
   else
   wcout << c << ", The character is not a lowercase character ";
   wcout << endl;
   return 0;
}

Output

S , The character is not a lowercase character
raja
Published on 08-Oct-2018 09:05:44
Advertisements