My program adds to the counter variable when I use "count+=1" and doesn't when I use "count++"
Advertisements I’m practicing pointers right now. The task is simple, count the number of instances of the letter c in an array and print the amount of times it occurred.I assigned a pointer to a counter variable in a function outside of main. For some reason, my program doesn’t count when I use *count++; #include… Read More My program adds to the counter variable when I use "count+=1" and doesn't when I use "count++"