Advertisement
dllbridge

Untitled

Nov 30th, 2024
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #include <stdio.h>
  5.  
  6. int foo(int *p);  
  7.  
  8. /////////////////////////////////////////////////////////
  9. int main()                                             //
  10. {
  11.    
  12.     int nArr[11]={11, 21, 32, 14, 57, 26, 78, 81, 79, 101, 141};
  13.  
  14.      
  15.     foo(&nArr[10]);
  16.  
  17.  
  18. }
  19.  
  20.  
  21.  
  22.  
  23. /////////////////////////////////////////////////////////
  24. int foo(int *p)                                        //
  25. {
  26.      
  27.     printf(" p = %d\n",  p);
  28.     printf("*p = %d\n", *p);  
  29.    
  30.  return   p[-9];    
  31. }
  32.  
  33.  
  34.  
  35.  
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement