//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");
}

Edited 3 Years Ago by Dani: Formatting fixed

Please 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 goes here [ / code ] without any spaces.

Here is an example:

int main()
{
     for(int i(0); i < 10; ++i)
     {
          cout << "This is an example of properly tagged code";
     } 
     return 0;
}

Please repost using this, and I will help you.

//Something Like That..As you can see I'm beginer//
#include <stdio.h>
#define SIZE 16
int* biggest(int *a, int count);
int main(void)
{cout << "This is code";
   1.

int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, 11, 43, 32, 97, 108, -8 };
int *p;
p = biggest(values, SIZE);
printf("the biggest element in the array is %i\n",
*p);
return 0;

}
int* biggest(int *a, int count)
{

Edited 3 Years Ago by Dani: Formatting fixed

#include <stdio.h>
#define SIZE 16
int* biggest(int *a, int count);
int main(void)

      cout << "This is code";   
int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, 11, 43, 32, 97, 108, -8 };
int *p;
p = biggest(values, SIZE);
printf("the biggest element in the array is %i\n",
*p);
return 0;

}
int* biggest(int *a, int count)
{

Edited 3 Years Ago by mike_2000_17: Fixed formatting

#include <stdio.h>
#define SIZE 16
int* biggest(int *a, int count);
int main(void)
{   
int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, 11, 43, 32, 97, 108, -8 };
int *p;
p = biggest(values, SIZE);
printf("the biggest element in the array is %i\n",*p);
return 0;
}
int* biggest(int *a, int count)
{    
     int i;
     for(a[i];a[i]<a[16];i++){
     if((a[i]>a[0])//I Beleive that Here must Be The Error.How Can I write It Better?//
     count=a[i];
     }
     return a;
}
This article has been dead for over six months. Start a new discussion instead.