In the following two lines in C:
int* a = (int *)calloc(automata_size, sizeof(int)); int* b = (a++);
I found that a and b share the same addre
So my advice is google post-increment and pre-increment. Pre-increment (++a) is:
++a
b = ++a;
and is the same as:
a = a + 1; b = a;
Where as post-increment:
b = a++;
is the same as
b = a; a = a + 1;
this applies to pointers as well as integers.