The program below does not compile. Which statement correctly describes the problem?
#include <iostream>
int total(int price = 100, int qty) {
return price * qty;
}
int main() {
std::cout << total(200, 3) << '\n';
return 0;
}
Write int total(int qty, int price = 100). Arguments fill parameters from the left, so a gap in the middle could never be skipped.