#include<iostre am.h> #include<iostre am.h>
#include<conio. h>
#include<math.h >
void display()
int main()
{
int a=9;
int b=10;
clrscr();
cout<<display(a ,b)<<"\n";
return 0;
getch();
}
void display(int A[] [],int m, int n)
{
int i,j;
for (i=0;i<m;i++)
for (j=0;j<n;j++)
cout<<" "<<A[i][j];
cout<<"\n";
}
i have listed my program to call a function above but it is showing an error as below in line 5 called ' Declaration syntax error'
kindly help me solve this
#include<conio. h>
#include<math.h >
void display()
int main()
{
int a=9;
int b=10;
clrscr();
cout<<display(a ,b)<<"\n";
return 0;
getch();
}
void display(int A[] [],int m, int n)
{
int i,j;
for (i=0;i<m;i++)
for (j=0;j<n;j++)
cout<<" "<<A[i][j];
cout<<"\n";
}
i have listed my program to call a function above but it is showing an error as below in line 5 called ' Declaration syntax error'
kindly help me solve this
Comment