Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void reverse(char *s)
- {
- int i = 0;
- while(s[i] != "\0")
- {
- ++i;
- }
- printf("%d",i);
- }
- int main()
- {
- const char *s = "ala ma kota";
- printf("%c", s[2]);
- reverse(s);
- getchar();
- return(0);
- }
Add Comment
Please, Sign In to add comment