// This program demonstrates that an array is a decaying pointer // This is meant to help you understand how we pass arrays // and manipulate them in functions #include int main(void) { int array[5] = {0}; for(int i = 0; i < 5; i++) { printf("Address of array[%d] = %p\n", i, &array[i]); } printf("The address of array is: %p\n", array); return 0; }