Advertisement
dllbridge

Untitled

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