Are there any errors in the following program if so please


Are there any errors in the following program? If so, please point them out and correct them. Explain why those errors are wrong.

#include
using namespace std;
void display(int x[], int size);
void compute(const int x[], int size);
int main()
{
int y[5]={0};
compute(y,5);
}
void display(int x[], int size)
{
for (int i=0; icout << x[i];
}
void compute (const int x[], int size)
{
for )int i=0; ix[i]=2*i+1;
size=size*2;
display (x, size);
}

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Are there any errors in the following program if so please
Reference No:- TGS0661174

Expected delivery within 24 Hours