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