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! :)
Answer:troubleshooting the network when there are problems with the connectivity ||||||| improving network speed
Explanation:
Answer:
1. Read the End User License Agreement (EULA) for each software product you purchase.
2. Purchase CD software only from reputable resellers.
3. Purchase software downloads directly from the manufacturer's website.
4. Register your software to prevent others from attempting to install your software on their computers.
5. Report piracy if you discover that software you purchased is not authentic or if you suspect that an online reseller or retail establishment is selling counterfeit software.
Link: https://www.techwalla.com/articles/how-to-stop-software-piracy
-Please mark as brainliest!- Thanks!
Answer:
mainframe and desktop computers
smartphones
embedded devices controlling robots
April 15th of each annual year