in the array lesson in the site's tutorial this code is goven and im not convinced with it because the 'i' is incremented before its use since the ++ comes before it.and as i know that this wont excute the first element in the string array.am i right?
Code:
char astring[10];
int i = 0;
/* Using scanf isn't really the best way to do this; we'll talk about that
in the next tutorial, on strings */
scanf( "%s", astring );
for ( i = 0; i < 10; ++i )
{
if ( astring[i] == 'a' )
{
printf( "You entered an a!\n" );
}
}