Advertisement
dllbridge

Untitled

Aug 13th, 2019
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #include   <stdio.h>
  5. #include   <stdlib.h>
  6.  
  7. int *pn = 0;
  8.  
  9. int cnt_1 = 0;
  10. int cnt_2 = 0;
  11. char  *psz[101];
  12.  
  13. ///////////////////////////////////
  14. int main()                       //  
  15. {
  16.    
  17.     pn = (int*)malloc(4);
  18.    
  19.     printf("*pn = %d\n", *pn);
  20.    
  21.     psz[cnt_2] = (char*)malloc(cnt_1+1);
  22.    
  23.    
  24.     printf("%s\n", psz[cnt_2]);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement