Hallo,
in the following example it is not possible to get any values from the pointer x:
#include <stdio.h>
int main(int argc, char *argv[])
{
int *x=(int *)malloc(20);
x++;
x++;
x++;
x++;
printf("%x\n",x);
return 0;
}
and here
#include <stdio.h>
int main(int argc, char *argv[])
{
int *x=(int *)malloc(20);
*x++=1;
*x++=2;
*x++=3;
*x++=4;
// last increment not displayed in debugger
printf("%x\n",x);
// wrong value in debugger
return 0;
}
czerny