//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
Recommended Answers
Jump to PostPlease use code tags. This is the third time I have warned you about this. People generally feel less inclined to help if they have to spend triple the time understanding the scopes of the program and finding un-highlighted keywords. Again, the syntax is [ code = cplusplus ] code …
Jump to PostThat's right, but get rid of all the spaces in the top tag.
All 5 Replies
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.