Pointer Size
#include <stdio.h>
 
void main (){
    char (*array)[10];
    printf ("%p\n", array++);
    printf ("%p\n", array);
 
}

0x37cff4
0x37cffe

#include <stdio.h>
 
typedef int array[10];
 
void main (){
    array data[100];
    array *ptr;
    printf ("%p\n", ptr++);
    printf ("%p\n", ptr);
}

0x250ff4
0x25101c

hex2dec('601c') - hex2dec('5ff4') = 40 = 10*(sizeof (int)) = 10 * 4

typedef array

typedef int aaa, bbb, ccc;
typedef int ar[15], arr[9][6];
typedef char c, *cp, carr[100];
 
/* now declare some objects */
 
/* all ints */
aaa     int1;
bbb     int2;
ccc     int3;
 
ar      yyy;    /* array of 15 ints */
arr     xxx;    /* 9*6 array of int */
 
c       ch;     /* a char */
cp      pnt;    /* pointer to char */
carr    chry;   /* array of 100 char */
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License