What will be the result of the following code:
int my_func() {
int count = 0;
int sum = 0;
for (count = 0; count < 100; count++) {
assert(sum > 0);
sum = sum + count;
}
return sum;
}
&
What might you do the previous code to make it do a "better" job?

Q&A Education