O
Osiro
Somebody can explain to me why does the code below work in DEV-C++?
#include <stdio.h>
#include <stdlib.h>
int main(){
int vet[10], i=0;
for (i=0;i<10;i++)
vet=i*2;
for (i=0;i<10;i++)
printf("- %d -",i[vet]); // ' i ' is a counter!!!!
printf("\n\n\n");
system("PAUSE");
}
#include <stdio.h>
#include <stdlib.h>
int main(){
int vet[10], i=0;
for (i=0;i<10;i++)
vet=i*2;
for (i=0;i<10;i++)
printf("- %d -",i[vet]); // ' i ' is a counter!!!!
printf("\n\n\n");
system("PAUSE");
}