There are consequences for this approach.
For example, you have to keep adding 1 all over the place - extra computation.
Just take a simple printed list :
Code:
int array[5] = {21,32,13,24,35};
int i;
/*
To print a list of values stored in an array - could be anything - a list of items in an invoice, anything read by a user in list form
*/
for( i = 0; i < 5; i++ )
{
// Additional computation on every loop i.e i+1
printf( "Item %d is value %d\n", i+1, array[i] );
}
// Or ....
int array[5+1] = {0,21,32,13,24,35};
int i;
for( i = 1; i <= 5; i++ )
{
printf( "Item %d is value %d\n", i, array[i] );
}
Space has not been a problem for years, and adding a single record is unlikely to be the straw that breaks the space camel's back.
For inexperienced programmers being intuitive is important - if you're experienced you should not have a problem reading either way.