Advertisement
mario_mos

addressvariable

Jul 25th, 2023
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdlib.h>
  4. #include <time.h>
  5. #include <string.h>
  6. #include <stdlib.h>
  7.  
  8.  
  9.  
  10. int var_globale = 40;
  11. char arrglob[20];
  12. const char c = 'p';
  13.  
  14. void local()
  15. {
  16. int var_local = 5;
  17. char arrlocal[10];
  18. printf("var_local : %p\n", var_local);
  19. printf("arrlocal : %p\n", arrlocal);
  20. }
  21.  
  22. int main()
  23. {
  24.  
  25.  
  26.  
  27.  
  28. printf("var_globale : %p\n", var_globale);
  29. printf("arrglobale : %p\n",arrglob);
  30. printf("const char c : %p\n", c);
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. return 0;
  43. }
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement