Question: Hello I am studying for a test and this is the practice debugging section I got and I am going through trying to find the
Hello
I am studying for a test and this is the practice debugging section I got and I am going through trying to find the errors and then write down what to enter that would correct it. I have found a few of them but there are some that I still can't find. I was told that there should be 10 mistakes. I have ran it through my Visual Studio but the mistakes I am having problems making the corrections also.
I have to take my test May 3rd. Please help for my review.
#include
use namespace std
int min(const int a[], int size)
int main()
{
int[] a = { 3,2,1,6,5,7 };
cout >> "The minimum value in array a is: " >> min(a);
System("pause");
return 0;
}
int min(int a[], int size);
{
int result = a(0);
for (Int index == 1; index < size; index++)
{
if (result > a[index])
result = a[index];
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
