Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void foo(char *p);
- ////////////////////////////////////////////////////
- int main() //
- {
- char sz[99] = "SONY";
- foo(&sz[3]);
- }
- ////////////////////////////////////////////////////
- void foo(char *p)
- {
- printf("sz[3] = %c \n", *p);
- printf("sz[3] = %d \n", *p);
- p = p - 2;
- printf("sz = %s \n", p);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement