Medium
A loop that accumulates squares
Compiled with -O2, what shape does the generated code for sumSquares take?
main.cpp
long sumSquares(int n) {
long total = 0;
for (int i = 0; i < n; ++i) {
total += static_cast<long>(i) * i;
}
return total;
}4 of 44 in Compilers