Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- int my_isalpha(char *mark)
- {
- if((((mark)>='a')&&((mark)<='z')||((mark)>='A')&&((mark)<='Z')))
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
- int main()
- {
- char mark;
- int (*pointer)(char*);
- pointer=my_isalpha;
- printf("Podaj znak: ");
- scanf("%c",&mark);
- if(pointer(mark))
- {
- printf("Wprowadziles litere");
- }
- else
- {
- printf("Niewprowadziles litery");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement