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