Simple operations with arrays.
Different ways to initialize the arrays.

/*******************************************************
*     MYCPLUS Sample Code - http://www.mycplus.com     *
*                                                     *
*   This code is made available as a service to our   *
*      visitors and is provided strictly for the      *
*               purpose of illustration.              *
*                                                     *
* Please direct all inquiries to saqib at mycplus.com *
*******************************************************/

#include 
#define N 10

void oneWay(void);
void anotherWay(void);

int main(void) {
  printf("\noneWay:\n");
  oneWay();
  printf("\nantherWay:\n");
  anotherWay();
}

/*Array initialized with aggregate */
void oneWay(void) {
  int vect[N] = {1,2,3,4,5,6,7,8,9,0};
  int i;

  for (i=0; i