#include #include #include using namespace std; int default_base = 10; void print(int n, int base = default_base); int main() { default_base = 16; //Change value of variable declared in line 6. int default_base = 8; //Create another variable with the same name. print(255); //variable declared in line 6, with value assigned in line 11. return EXIT_SUCCESS; } void print(int n, int base) { if (base == 8) { cout << oct << n << "\n"; } else if (base == 10) { cout << dec << n << "\n"; } else if (base == 16) { cout << hex << n << "\n"; } else { cerr << "base " << base << " must be 8, 10, or 16\n"; exit(EXIT_FAILURE); } }