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