Write a C program to is char a control char.
Menu
Turn Mobile View Off
by Dinesh Thakur

 

 

#include<ctype.h>

#include<stdio.h>
#include<conio .h>
void main()
{
char ch;
for(;;)
{
ch = getchar();
if(ch == '.') break;
if(iscntrl(ch)) printf("%c is a control char\n", ch);
}
getch();
}
 
OUTPUT:
2
is a control char
Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off