Write a C program to be it a space 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(isspace(ch)) printf("%c is white space\n", ch);
if(ch = I.') break;
}
getch();
}
 
OUTPUT:
(Press spacebar)
is white space
Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off