#(*count)++; is this a dereference
13 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
Just for someone else who might stumble upon this:
a++ is the same as a = a + 1.
In your case a := *count so:
*count = *count + 1, or in other words: Increment the variable count points to
If you did *count++ then the ++ has a higher precedence than *, so here a := count:
count = count + 1, or in other words: Increment the pointer count itself.
Fun fact here is that count++ first returns count and then increments it, so *count++ would evaluate to what count points to just before executing this line.
The explanation made it more confusing...
Fuck
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.

