Easy
A loop bound computed by an external function
limit() is defined in another translation unit, and in this program it happens to return the same value every time. Compiled with -O2 and no LTO, how many times does fill call limit()?
main.cpp
int limit(); // defined in another translation unit
void fill(int* a) {
for (int i = 0; i < limit(); ++i) {
a[i] = 0;
}
}29 of 44 in Compilers