Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int n = 77;
- int *p = &n;
- /////////////////////////////////////////////////
- int main() //
- {
- printf(" p = %7d\n", p);
- printf("*p = %7d\n", *p);
- printf(" n = %7d\n", n);
- printf("&n = %7d\n", &n);
- }
- /*
- #include <stdio.h>
- void foo(int *);
- /////////////////////////////////////////////////
- int main() //
- {
- int nSec = 0;
- foo(&nSec);
- printf("nSec = %d", nSec);
- return 0;
- }
- //////////////////////////////////////////////////
- void foo(int *s)
- {
- (*s)++;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement