//I have done Until.. But it seems to have many problem with compiler//
#include <stdio.h>
#define SIZE 3
void swaparrays(int* a, int* b);
main ()
{
int a[3][3]={{0, 2, 3},
{1, 5, 7},
{3, 9, 4}};
int b[3][3]={{2, 8, 5},
{4, 7, 1},
{3, 9, 2}};
void swaparrays(int* a, int* b);
int i,j;
for(i=0;i<SIZE;i++){
for(j=0;j<SIZE;j++)
printf("%d",a[i][j]);
}
int k,l;
for(k=0;k<SIZE;k++){
for(l=0;l<SIZE;l++)
printf("%d",a[k][l]);
}
system("PAUSE");
}
Boudou -10 Newbie Poster
skatamatic 371 Practically a Posting Shark
Boudou -10 Newbie Poster
Boudou -10 Newbie Poster
skatamatic 371 Practically a Posting Shark
Boudou -10 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.