Advertisement
dllbridge

Untitled

Jan 25th, 2022
868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.54 KB | None | 0 0
  1.  
  2. #include       <stdio.h>
  3.  
  4.  
  5.  
  6. int n = 0;
  7.  
  8. int full(int *a, int *b);
  9.  
  10.  
  11. ////////////////////////////////////////////////////
  12. int main()                                        //
  13.  
  14. {
  15.  
  16.  
  17.    int a =  7,
  18.  
  19.  
  20.        b = 44;
  21.  
  22.  
  23.     full(&a, &b);
  24.  
  25.     printf("_a = %d; b = %d. \n", a, b);
  26.  
  27.     scanf("%d", &n);
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. int full(int *aa, int *bb)
  36. {
  37.  
  38.  
  39.     int c;
  40.  
  41.  
  42.     c = *aa;
  43.  
  44.     *aa = *bb;
  45.     *bb = c;
  46.     // printf("a = %d; b = %d. \n", a, b);
  47. }
  48.  
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement