#include /* Function definition to show how arrays are passed */ void func(float a[], float b[][3]) { printf("%f %f %f\n",a[1],a[2],a[3]); printf("%f %f %f\n",b[1][1],a[2][2],a[3][3]); } int main(int argc, char **argv) { float a[10]; a[2] = 3.1; /* Pointer declaration */ float *ptr; /* Initialize ptr to point to the index 1 of array */ ptr = a+1; *ptr = 5.0; /* Initialize to point to the index 3 */ ptr = &a[3]; *ptr = 3.14; /* Pass the pointer to the array name */ func(a); return 0; }