#include //C++ example #include #include //for isprint #include //for frexp using namespace std; void print(int i); void print(char c); void print(double d); int main() { int i = 65; char c = 'A'; double d = 65.0; short s = 65; print(i); //the function declared in line 7 print(c); //the function declared in line 8 print(d); //the function declared in line 9 print(s); //the function declared in line 7 return EXIT_SUCCESS; } void print(int i) { cout << i << "\n"; } void print(char c) { //Output character code of c as a non-negative decimal integer. cout << static_cast(static_cast(c)); if (isprint(static_cast(c)) != 0) { cout << "\t'" << c << "'"; } cout << "\n"; } void print(double d) { int exponent; //uninitialized variable double mantissa = frexp(d, &exponent); cout << d << ", mantissa == " << mantissa << ", exponent == " << exponent << "\n"; }