Answer:
#include <bits/stdc++.h>
using namespace std;
int lowestPosition(double elements[],int n)//function to find position of lowest value element.
{
int i,pos;
double min=INT_MAX;
for(i=0;i<n;i++)
{
if(elements[i]<min)
{
min=elements[i];
pos=i;//storing index.
}
}
return pos+1;//returning pos +1 to give the correct position in the array.
}
int main() {
double ele[500];
int n;
cout<<"Enter number of values"<<endl;
cin>>n;
cout<<"Enter elements"<<endl;
for(int i=0;i<n;i++)
{
cin>>ele[i];
}
int pos=lowestPosition(ele,n);//function call.
cout<<"The position of element with minimum value is "<<pos<<endl;
return 0;
}
Output:-
Enter number of values
5
Enter elements
4 6 7 5 1
The position of element with minimum value is 5
Explanation:
I have created a function lowestPosition() with arguments double array and it's size.I have taken a integer variable pos to store the index and after finding minimum and index i am returning pos+1 just to return correct position in the array.
Answer:
The main objective of router is to connect various networks simultaneously and it works in network layer
Explanation:
The main objective of router is to connect various networks simultaneously and it works in network layer
I do t know the answer to this but i think tou can firger it iut food luck
the answer is d because depending on your state's laws they can also and endangerment of self and others