c指针

int main(void){
   char *f = "dffddfdf";
   int *s;
   char *t;
   printf("f is %s 
", f);
   s = (int *)f;
   printf("s is %d 
", *s);
   t = (char *)s;
   printf("t is %s 
", t);
   return 0;

}

  

f is dffddfdf 
s is 1684432484 
t is dffddfdf 
原文地址:https://www.cnblogs.com/china8036/p/4750157.html