Guest User

Untitled

a guest
Jan 4th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5. int *p1[1] = {2018};
  6. char *p2[1] = {"abcd"};
  7.  
  8. p1[0] = p2[0];
  9.  
  10. printf("%snn", p1[0]); /* выводит abcd */
  11.  
  12. return 0;
  13. }
  14.  
  15. int *p1[1] = {2018};
  16.  
  17. p1[0] = p2[0];
  18.  
  19. printf("%snn", p1[0]);
  20.  
  21. printf("%snn", p1[0]);
Add Comment
Please, Sign In to add comment