C Reference Alphabetic Test: isalpha()

The function isalpha() returns a non-zero if its argument is a letter of the alphabet. If it is not a letter of the alphabet, then zero is returned.

isalpha() source code example:


int main()
	char a;
	scanf( "%c", &a );
	if( isalpha(a) )
		printf( "This is a letter of the alphabet: %c\n", a );
		printf( "This is NOT a letter of the alphabet: %c\n", a );
	return 0;

This entry was posted in C Reference ctype.h Functions. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. Tweet This! Tweet This! or use to share this post with others.

There is currently one response to “C Reference Alphabetic Test: isalpha()”

Why not let us know what you think by adding your own comment!

  1. Arlene Batada on April 13th, 2013:

    Thanks for such simple illustrative programs for the function explanation. Keep it up.