Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- #include <stdio.h>
- int foo(char *psz);
- /////////////////////////////////////////
- int main() //
- {
- char szSONY[99] = "WORLD OF THE ";
- foo(&szSONY[4]);
- // foo( szSONY);
- }
- /////////////////////////////////////////
- int foo(char *psz) //
- {
- for (int a = 0; psz[a] != 0; a++)
- {
- printf("WORLD = %c\n", psz[a]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement