Addition of two array using define , Example
Addition of two array using define
#include
#define m 10
#define n 10
void main()
{
int a[m][n],i,j,x,y;
clrscr();
printf("\nEnter number of rows and columns");
scanf("%d%d",&x,&y);
for(i=0;i
{
for(j=0;j
scanf("%d",&a[i][j]);
}
printf("\n\n\n");
for(i=0;i
{
for(j=0;j
{
printf(" %d",a[i][j]);
}
printf("\n\n");
}
}
Addition of two array using define in c code
Addition of two array using define
#include
#define m 10
#define n 10
void main()
{
int a[m][n],i,j,x,y;
clrscr();
printf("\nEnter number of rows and columns");
scanf("%d%d",&x,&y);
for(i=0;i
{
for(j=0;j
scanf("%d",&a[i][j]);
}
printf("\n\n\n");
for(i=0;i
{
for(j=0;j
{
printf(" %d",a[i][j]);
}
printf("\n\n");
}
}
Addition of two array using define in c code
0 comments: