Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. int func2(void);
  4. int* func1(void);
  5.  
  6. int func2(void)
  7. {
  8. int* b;
  9. b=func1();
  10. printf("%d",*b);
  11. printf("%d",*b);
  12. printf("%d",*b);
  13. }
  14.  
  15. int* func1()
  16. {
  17. int a=13;
  18. return &a;
  19. }
  20.  
  21. int main()
  22. {
  23. func2();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement