123456789101112131415161718192021222324252627
#include <stdio.h> #include <stdlib.h> void imfunction(int *add) { *add++; } int main(int argc, char *argv[]) { int hello = 0; printf("\nhello = %d", hello); imfunction(&hello); printf("\nhello = %d", hello); return 0; } result is hello = 0 hello = 0 but when i change it to *add = *add +1; hello = 0 hello = 1
*add++
*(add++)
(*add)++