Answer:
Explanation:
The code in C++ is written as:
#include <iostream>
using namespace std;
int smallestIndex(int arr[],int size)
{
int min=arr[0],ind=0;
for(int i=0;i<size;i++)
{
if(min>arr[i])
{
min=arr[i];
ind=i; NOTE: ind serves as a variable that is holding the smallest
} element index of array
}
return ind;
}
int main() {
int arr[15];
cout<<"Enter 15 integers: ";
for(int i=0;i<15;i++)
cin>>arr[i];
for(int i=0;i<15;i++)
cout<<arr[i]<<" "<<endl;
int index=smallestIndex(arr,15);
cout<<"The position of the first occurrence of the smallest element in list is: "<<index<<endl;
cout<<"The smallest element in list is: "<<arr[index];
}
OUTPUT:
Enter 15 integers:
4
5
8
4
6
1
2
1
4
5
7
9
5
7
8
4 5 8 4 6 1 2 1 4 5 7 9 5 7 8
The position of the first occurrence for the smallest element in the list is 5
The smallest element in the list is: 1
No options shown, but typically the next step is checking the connection to see if its plugged in.
Always use the 7 layers of the OSI model to solve technology problems, starting at Hardware and ending at the Applications level.
Answer:
You must buy eight 2-core license packs, for a total of 16 core licenses.
Explanation:
Brainliest pls
F socket refers to an open TCP connection, the connection is closed. If a stream socket is closed when there is input data queued, the TCP connection is reset rather than being cleanly closed. The descriptor of the socket to be closed
To close the socket you need to call shutdown() first and then close(), and shutdown takes an argument