News for hackers. Stuff that matters.
Re:Are pointers and arrays equivalent in C? (2009) by je-so on Saturday March 21, 2015 @01:10PM (#9243363)
Another interesting thing to know about pointer and arrays is:

  #include <stdio.h>
  typedef int a_t[100];

  int main(void)
  {
     int  a[100];
     a_t* p = &a;

     // all printed pointer values are equal
     printf("%p %p %p %p\n", (void*)a, (void*)&a, (void*)p,  (void*)*p);
     return 0;
   }

There are no comments on this comment yet.