int a[10] = {1,2,3,4,5,6,7,8};
for(int i = 0; i < 5; )
{
printf("%d\n", ++i++[a]);
}
printf("------------------------------------------------\n");
for(int i = 0; i < 5; )
{
printf("%d\n", ++i++[a]);
}
printf("------------------------------------------------\n");
for(int i = 0; i < 5;
)
{
printf("%d\n", i++[a]);
}
printf("%d\n", i++[a]);
}