Answer:
#include <iostream>
using namespace std;
void divide(int numerator, int denominator, int *quotient, int *remainder)
{
*quotient = (int)(numerator / denominator);
*remainder = numerator % denominator;
}
int main()
{
int num = 42, den = 5, quotient=0, remainder=0;
divide(num, den, "ient, &remainder);
return 0;
}
Explanation:
The exercise is for "Call by pointers". This technique is particularly useful when a variable needs to be changed by a function. In our case, the quotient and the remainder. The '&' is passing by address. Since the function is calling a pointer. We need to pass an address. This way, the function will alter the value at the address.
To sum up, in case we hadn't used pointers here, the quotient and remainder that we set to '0' would have remained zero because the function would've made copies of them, altered the copies and then DELETED the copies. When we pass by pointer, the computer goes inside the memory and changes it at the address. No new copies are made. And the value of the variable is updated.
Thanks! :)
The report footer section appear in pinnacle margin, even as the footer is a phase of the record that looks withinside the backside margin.
<h3>What is document footer access?</h3>
Add info in your Access shape or document with footers. If you've got got unique facts inclusive of an equation, date or time that does not in shape withinside the frame of your shape or document, you could upload it to a footer. Footers seem at the lowest of the file or the web page, relying at the alternatives you choose.
The Report Header, which prints as soon as on the pinnacle of the document, for the title. The Footer, which prints as soon as on the quit of the document, for combination totals.
Read more about the footer section:
brainly.com/question/1327497
#SPJ1
it means to alt f4 then that would help so it can eat the microscope then have it digested
A. The force that moves electrons
Answer:
i cant
Explanation:
i would but im on a chromebook rn
sorry but thanks
take care