Defining an array in C

  • Syntax to define an array in C:

          dataType  arrayName[ arraySize ];              
      

  • Example: the definition double a[10] will reserve memory for 10 consecutive double type variables: