-
Notifications
You must be signed in to change notification settings - Fork 1
/
Isgraph.c
44 lines (36 loc) · 916 Bytes
/
Isgraph.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <conio.h>
#include <ctype.h>
#include <stdio.h>
int main() {
if (isgraph('@')) {
printf(" It is a graphical character. \n");
} else {
printf(" It is not a graphical character. \n");
}
if (isgraph('\n')) {
printf(" It is a graphical character. \n");
} else {
printf(" It is not a graphical character. \n");
}
if (isgraph('Ch')) {
printf(" It is a graphical character. \n");
} else {
printf(" It is not a graphical character. \n");
}
if (isgraph('\t')) {
printf(" It is a graphical character. \n");
} else {
printf(" It is not a graphical character. \n");
}
if (isgraph('#')) {
printf(" It is a graphical character. \n");
} else {
printf(" It is not a graphical character. \n");
}
if (isgraph(' ')) {
printf(" It is a graphical character. \n");
} else {
printf(" It is not a graphical character. \n");
}
return 0;
}