3 ms·
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
by je-so 12y ago
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;
}