Question: Given the program contains the following program. #include using namespace std; int main() { return 0; } int cube(int num) { return num * num
Given the program contains the following program.
#include
using namespace std;
int main()
{
return 0;
}
int cube(int num)
{
return num * num * num;
}
Add the function prototype for the function above? Write a statement that calls the function above and passes the value 4. Write a statement in main that print out the result from the function to a file called output_LastNameFirstName.dat. Read the output from the file "output_LastNameFirstName.dat" and print it to the screen (command window) again.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
