Say I have a int
variable called count
, I was wondering how many primitive operations are int the statement:
count++;
Would it be 3? Because if you write it out in a different form, such as:
count = count + 1;
It has 1 read, 1 operation, and 1 write. So that would mean the statement count++
counts as 3 primitive operations right?