Menu

[solved] – Question 97125

Write a C++ program that incorporates three functions subtraction, addition and operation. The subtraction and addition accepts two integer parameters and are used to return the added and subtracted values respectively. The operation function accepts two integer parameters and a pointer to a function and which is used to call the pointed function that returns the computed value accordingly, and which is then returned to the main function to be displayed. The main function declares two pointers sum and minus to the functions addition and subtraction respectively and then calls the operation function twice, each with respective arguments

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *