/*
  Passing an array to a function
*/

#include<stdio.h>

#define SIZE 5

int main( void )
{
int var = 10;
int b[SIZE] = {0};

printf("The address of var is 0x%p\n", &var);
printf("The value of var is %d\n", var);

printf("\n");

printf("The value of b is 0x%p\n", b);
printf("The address of b[0] is 0x%p\n", &b[0]);
printf("The address of b[1] is 0x%p\n", &b[1]);
printf("The address of b[2] is 0x%p\n", &b[2]);
printf("The address of b[3] is 0x%p\n", &b[3]);
printf("The address of b[4] is 0x%p\n", &b[4]);
printf("The value of b[0] is %d\n", b[0]);

return 0;
}
