Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- char string[50];
- scanf("%s", string);
- const char karakter = 'a';
- char *ret = strchr(string, karakter);
- if (ret)
- printf("Pronadjeno 'a' u stringu '%s'.", string);
- else printf("Nije pronadjeno 'a' u stringu '%s'.", string);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement