According to the C++23 standard, what is the output of this program?
#include <iostream>
int main() {
for (int i = 0; i < 3; i++)
std::cout << i;
for (int i = 0; i < 3; ++i)
std::cout << i;
}When is i incremented?
012012
Whether you post-increment or pre-increment i, its value does not change until after the loop body has executed.