Advertisement
dllbridge

Untitled

Sep 23rd, 2024
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3.  
  4. void foo(int *p);
  5.  
  6. /////////////////////////////////////////////////
  7. int main()                                     //  
  8. {
  9.    
  10.     int nArr[99] = {10, 11, 12, 13, 14};
  11.    
  12.     foo(&nArr[4]);
  13.    
  14. }
  15.  
  16.  
  17. /////////////////////////////////////////////////
  18. void foo(int *p)
  19. {
  20.      
  21.      int nA_2[99];
  22.      
  23.      p -= 3;
  24.  
  25.  
  26.      printf("%d\n", *p);
  27.      
  28. }
  29.  
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement