Question
1. Create a header file (with an extension of .h ). In this file, declare a group of functions by varying the argument lists and
1. Create a header file (with an extension of .h). In this file, declare a group of functions by varying the argument lists and return values from among the following: void, char, int, and float. Now create a .cpp file that includes your header file and creates definitions for all of these functions. Each definition should simply print out the function name, argument list, and return type so you know its been called. Create a second .cpp file that includes your header file and defines int main( ), containing calls to all of your functions. Compile and run your program. Please submit your code.
2. Define a function that takes a double argument and returns an int. Create and initialize a pointer to this function, and call the function through your pointer. Please submit your code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started