The function isalpha() returns non-zero if its argument is a letter of the alphabet. Otherwise it shall return 0 or False.
Header File - #include<ctype.h>, cctype(c++)
Syntex - isalpha(int ch)
Header File - #include<ctype.h>, cctype(c++)
Syntex - isalpha(int ch)
isalpha function Example1
|
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
void main
()
{
char
chr[]="abc123";
int j=0;
while
(isalpha(chr[j]))
{
j++;
printf ("The %d character are alphabet.\n",j);
}
getch();
}
|
0 comments:
Post a Comment