Answer:
#include <iostream>
using namespace std;
void MinMax(int x,int y,int z,int *max,int *min)
{
int big,small;
if((x>y)&&(x>z)) //to check for maximum value
big=x;
else if((y>x)&&(y>z))
big=y;
else
big=z;
if((x<y)&&(x<z)) //to check for minimum value
small=x;
else if((y<x)&&(y<z))
small=y;
else
small=z;
*max=big; //pointer pointing to maximum value
*min=small; //pointer pointing to minimum value
}
int main()
{
int big,small;
MinMax(43,29,100,&big,&small);
cout<<"Max is "<<big<<"\nMin is "<<small; //big and small variables will get value from method called
return 0;
}
OUTPUT :
Max is 100
Min is 29
Explanation:
When the method is called from first three integers maximum will be found using the conditions imposed and maximum value will be found and similarly will happen with the minimum value.
Answer:
First, you need to start the OSPF process by executing the command:
<em>Router (config)# router ospf {process-ID#}</em>
Then, you have to instruct the router to advertise the networks that are directly linked to it by entering this network command with the area ID number for that network:
Router (config-router)# network {192.168.10.0} {255.255.255.0} area {0}
Answer:The iterative design process occurs in a continuous cycle involving three unique stages: formulate, test, evaluate. These core elements make up the basic progression in which the development of a game will follow. The rest is simply rinse and repeat
Explanation:
Explanation:
Computers are very useful machines..We use it for creating presentations, creating documents, creating many more things that are made nicely by computer..