I\'m using this code to move pointer by 1 byte now, but I\'m feeling something unclear..
int* a = (int*)malloc(sizeof(int)); void* b = ((char*)a)+1;
plz, use void*
int g = 10; int *a = &g; printf("a : %p\n",a); printf("a : %p\n", ++a); printf("a : %p\n", (void*)((char*)a+1));
a : 0xbfae35dc a : 0xbfae35e0 a : 0xbfae35e1