Guest User

Untitled

a guest
Nov 15th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int* a[5];
  4. int& ref() {
  5. return *a[0];
  6. }
  7.  
  8. void print(int* p) {
  9. printf("%p\n", p);
  10. }
  11.  
  12. int main() {
  13. a[0] = (int*)1;
  14. print(&ref());
  15. return 0;
  16. }
Add Comment
Please, Sign In to add comment