iswlower() function in C/C++


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,


 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 ";
   wcout << c << ", The character is not a lowercase character ";
   wcout << endl;
   return 0;


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