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