Question: 3. Write a program to read two integers and perform the division operation. The first number entered by the user should be divided by the

3. Write a program to read two integers and perform the division operation. The first number entered by the user should be divided by the second number. Print out the quotient and the remainder from that division operation. This program will demonstrate the use of pointers to pass arguments to function by reference. You are required to write the following functions: a. getData - This function reads two numbers into variables. In the main function, the parameters should be passed by reference. b. divide - This function divides two integers. In the main function, the output parameters should be passed by reference. C. print - This function prints the quotient and the remainder. Sample Output: Enter two integers : 132 Quotient : 6 Remainder :1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
