Check out example codes for "isalpha c++". It will help you in understanding the concepts better.

Code Example 1

#include<stdio.h>
#include<ctype.h>

int main() {
   char val1 = 's';
   char val2 = '8';

   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");

   return 0;
}

Code Example 2

char test='a';
cout<<isalpha(test);

Learn ReactJs, React Native from akashmittal.com