Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. int my_isalpha(char *mark)
  5. {
  6. if((((mark)>='a')&&((mark)<='z')||((mark)>='A')&&((mark)<='Z')))
  7. {
  8. return 1;
  9. }
  10. else
  11. {
  12. return 0;
  13. }
  14. }
  15. int main()
  16. {
  17. char mark;
  18. int (*pointer)(char*);
  19. pointer=my_isalpha;
  20.  
  21. printf("Podaj znak: ");
  22. scanf("%c",&mark);
  23.  
  24. if(pointer(mark))
  25. {
  26. printf("Wprowadziles litere");
  27. }
  28. else
  29. {
  30. printf("Niewprowadziles litery");
  31. }
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement