today i was trying some code in pointers whish really amaze me for incrementing but some variable i get weird results
first i thought *num++; would just increment the address itself but it doesnt even increment anything so any idea what it doess coz this is really weird.Code:#include <stdio.h> int increment_it(int *num) { int result; (*num)++;//this works *num=*num+1;//works #ifdef USE_NON_WORKING *num++;//this doesnt #endif return result; } int main(void) { int x=0; increment_it(&x); printf("%d",x); getchar(); return 0; }