Advertisement
dllbridge

Untitled

Dec 1st, 2022
777
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. #include  <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int      arr[123];
  5.  
  6.  
  7.  
  8. //////////////////////////////////////////////////////////////////////////////
  9. int main()                                                                  //
  10. {
  11.    
  12.     int a, n, b, c;
  13.    
  14.    
  15.     int *pn = (int*)malloc(4);
  16.  
  17.    *pn = 85;
  18.  
  19.     printf(" pn = %d \n",  pn);
  20.     printf("*pn = %d \n", *pn);
  21.    
  22.     int &nEfim = *pn;
  23.    
  24.     printf(" nEfim = %d \n",  nEfim);
  25.     printf("&nEfim = %d \n", &nEfim);
  26.    
  27.     free(pn);  
  28. }
  29.    
  30.    
  31.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement