- Program :
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
void main() {
char val1 = 's';
char val2 = '8';
clrscr();
printf("\n----------------USAGE OF ISALPHA()----------------");
if(isalpha(val1))
printf("The character is an alphabet\n");
else
printf("The character is not an alphabet\n");
if(isalpha(val2))
printf("The character is an alphabet\n");
else
printf("The character is not an alphabet");
getch();
}
- Output :
No comments:
Post a Comment