Identify the compiler errors in Problems and state what is wrong with the code.

```
#include
using namespace std;
void SortArray(int values[]);
int main()
{
int values[75];
//assume values becomes filled with data
SortArray(values[75]);


return 0;
}
void SortArray(int values)
{
for(i = 0; i < 75; ++i)
{
if(values[i] < values[i-1]);

values[i] = values[i-1];
}
}
```


```
#include
using namespace std;
void SortArray(int values[]);
int main()
{
int values[75];
//assume values becomes filled with data
SortArray(values[75]); << do not put [75] in call, this format
tries to sent one value from the array

return 0;
}
void SortArray(int values)
{
for(i = 0; i < 75; ++i)
{
if(values[i] < values[i-1]); < not a compiler error
values[i] = values[i-1];
}
}
```

Computer Science & Information Technology

You might also like to view...

Write an if statement to do the following. (Assume the variables have been declared. You do not need to declare the variables. Simply construct an if statement.) Hint: You will need to use comparison operators and a logical operator.

If both variables a and b are greater than 0, then increment the value of the variable c by 1.

Computer Science & Information Technology

A recurring appointment repeats on the calendar at regular intervals.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What are the categories of local security policy settings?

What will be an ideal response?

Computer Science & Information Technology

Which user name is associated with a process started by Windows?

A. Administrator B. Windows C. System D. The logged in user

Computer Science & Information Technology