iswalnum(): This function is available in the file wchar.h. This function checks whether a wide character is an alphabetic letter (either uppercase or lowercase) or a decimal digit. This function returns a value different from zero (i.e. true) if indeed c is either a digit or a letter. Zero (i.e. false) otherwise.
Parameters: One parameter is required for this function.
arg: A wide character to be checked, cast into wint_t.
Syntax:
int iswalnum(wint_t _C)
iswalnum(arg)
For Example:
iswalnum('A') = > It returns true.
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){wchar_t C = 'A';cout << iswalnum(C) << "\n";return 0;}
No comments:
Post a Comment