Below code checks if the sum of any pairs of numbers on an array equals to zero. I'm trying to workout the complexity by considering how many times major operations such as variable declarations, value assignments, comparisons, increments, array accesses etc. Normally the complexity would be O(N^2) but I'm very confused when I have to consider the operations specified above. How should I approach this?
int count = 0;
for(int i=0; i<N; i++)
for(int j=i+1; j<N; j++)
if(a[i] + a[j] == 0)
count++;

