Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- char sz[99] = "SONY";
- void foo(char *p); // Заголовок
- ////////////////////////////////////////////////////
- int main() //
- {
- printf("%s\n", sz);
- foo(sz);
- printf("%s\n", sz);
- }
- ////////////////////////////////////////////////////
- void foo(char *p) // Прототип
- {
- int n = strlen(p);
- // printf("n = %d\n", n);
- for(int i = 0; i < n; i++)
- {
- p[i] = p[i]+1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement