Consider the following two cpu operations:
sum = 1 + 1 + 1 + 1 + 1 + 1+ 1+......n times
and sum = 1 * n
Now I want to know whether these two operations are different in terms of complexity and cpu time. Also can I consider these as atomic operations?