Skip to content

Instantly share code, notes, and snippets.

@cvsync
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvsync/10ed2118ca5fde90cc7f to your computer and use it in GitHub Desktop.
Save cvsync/10ed2118ca5fde90cc7f to your computer and use it in GitHub Desktop.
Which value is returned by isalpha() ?
/*
* Which value is returned by isalpha() ? by M-Systems, Inc.
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int
main(void)
{
int c, i;
for (i = 0 ; i < 26 ; i++) {
c = 'a' + i;
(void)printf("%d\n", isalpha(c));
}
exit(EXIT_SUCCESS);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment