i have this code:
Code:
#include <stdio.h>
#include <stdlib.h>
typedef struct
{
int door_number;
char street;
char town;
char county;
char postcode;
}Address;
void enter_address(Address *p_address)
{
p_address->door_number = 1;
//etc etc
}
int main()
{
int i;
Address book[20];
for (i = 0; i < 20; i++)
{
enter_address(book[i]);
}
return 0;
}
i know the solution is to call enter address like this
Code:
enter_address(book + entrys)
but what i don't understand is why since array[1] is the same as array + 1
is this just another example of c stands for contrary