Write a function named: divide which takes two integers and an integer pointer. The function should divide the first integer to the second one, and return the result as an integer, and put the remainder into the address given by the integer pointer parameter.

The given main code reads two integers: a, b, and creates two integers without initialization: res, rem. Complete the function call so that the res variable become a/b, and rem variable become the remainder after the call.

Note that the brackets and the semicolon of the function call are already given. You must put only the parameters with a comma between them. Remember that you can make a function call in multiple lines. For example this:

int x = someFunction(a,b,c);

Is equal to this:

int x = someFunction(
a, b, c
);


So, don't remove any brackets and don't add any brackets. Just put the parameters between the two comments.

Examples:
INPUT OUTPUT
12 5 2 2
57 7 8 1
66 33 2 0


Important issues about all exams/projects/quizzes: