C
Cadderly
Hi,
Could you explain why the outputs of the 2 'for' are the same?
Thanks
#include <stdio.h>
int main(void)
{
int i;
for ( i = 0; i < 5; i++ ) {
printf("%d \n", i);
}
for ( i = 0; i < 5; ++i ) {
printf("%d \n", i);
}
return 0;
}
Could you explain why the outputs of the 2 'for' are the same?
Thanks
#include <stdio.h>
int main(void)
{
int i;
for ( i = 0; i < 5; i++ ) {
printf("%d \n", i);
}
for ( i = 0; i < 5; ++i ) {
printf("%d \n", i);
}
return 0;
}