I have an int
pointer (i.e. int *count
) that I want to increment the integer that the ++
operator points to. I thought I would call:
*count++;
However, I get a warning about the assembly "expression result is not used." I can call
*count += 1;
But I would like to know how to use the ++
operator. Any ideas?
c increment pointers post-increment
joels Sep 07 '10 at 4:16 2010-09-07 04:16
source share