iswascii() in C++

iswascii(): This function is available in the file ctype.h. This function determines whether a particular character is an ASCII character. This function returns a nonzero value if c is a wide-character representation of an ASCII character. Otherwise, it returns 0.

Parameters: One parameter is required for this function.

c: The integer to test.

Syntax:

int iswascii(wint_t _C)

iswascii(c)

For Example:

iswascii(97) = > It return true.

Approach

C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
    wint_t C = 97;
    cout << iswascii(C<< "\n";

    return 0;
}


No comments:

Post a Comment