When I run this program, the first number that is printed is some odd number like 134508085, why does it print that first instead of the number I input first?
Code:#include <stdio.h>
int main( int argc, char *argv[] ){
int a[10];
int i;
printf("Enter ten numbers: \n");
for(i = 0; i < 10; i++){
printf("%d> ", i+1);
scanf("%d", &a[i]);
}
for(;i >=0; i--)
printf("%d \n", a[i]);
return 0;
}