Array initialization and input

in case when we intialize an array of size 10 with 3 elements only rest take become zero but in case if we are taking input of 3 elements and storing what can we say about remaning array part(i.e whether they store garbage or the ywill store zero.) i tried it but i want general answer

@sandeep021 hey sandeep give some example your statement is so confusing .

int a[10]={1,2,3} then a=[1,2,3,0,0,0,0,0,0,0] but what if we do, for(int i=0;i<4;i++) a[i]=i,a=[0,1,2,3,,,,,,] will these spaces will filled with zero or garbage value

@sandeep021 hey sandeep this will contain a garbage value in this case .