#include <stdio.h>
int main() {
int x[] = {2, 3, 1, 5, 6, 9};
int j, i, s;
for (i=0; i<6; i++){
if (x[i] % 2 == 1){
break;
}
}
printf("%d", i);
for (j=5; j>1; j--){
x[j+1] = x[j];
}
printf("%d", i);
return 0;
}
The first printfprints 1, and the other printfprints 9. And I have not changed iin the meantime, as you can see. Why is he typing 9?
source
share