fork download
  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("%s\n\n", p1[0]); /* выводит abcd */
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 4392KB
stdin
Standard input is empty
stdout
abcd