Facebook
From Thundering Giraffe, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 233
  1. #include <stdio.h>
  2. int main(){
  3.         char *a[]= {"Abc", "Cde"};
  4.         void *ptr1 = a;
  5.         int *ptr2 = (int *)a;  
  6.         printf("%dn", a);
  7.         printf("%dn", *a);
  8.         printf("%dn", a[1]);
  9.  
  10.         printf("%dn", ptr1);
  11.         printf("%dn", ptr2);
  12.  
  13.         printf("%dn", *ptr2);
  14. }