(Solved):1. C++ program to do the following: Define a function called “difference” that can accept two integer values as arguments and returns an integer (which is the obtained by subtracting the first the… View Answer…

 

Question

1. C++ program to do the following: Define a function called “difference” that can accept two integer values as arguments and returns an integer (which is the obtained by subtracting the first the second argument from the first argument. Declare two variables in the main function and assign them values 7 and 10. Call the difference function with the above-created variables as arguments. Print the returned difference in the main

Scroll to top