Question: Question 4 (20p) We want to split the following code into 2 files, so that the function sum is in one file and main is
Question 4 (20p) We want to split the following code into 2 files, so that the function sum is in one file and main is in another file. Show what the contents of these files should be. Do we need to write a header file (.h)? If yes, show the contents of that file as well #include
Step by Step Solution
There are 3 Steps involved in it
To split the code into two files its a good practice to use a header file to declare th... View full answer
Get step-by-step solutions from verified subject matter experts
