Arrays- Initialisation

If we take arr[1000]…and initialise first n elements using for loop then what are the values that are stored in rest (1000 - n) elements/buckets…This doubt came into my mind after Arrays- largest and smallest number video…pls help

@Mrityunjay19 hey,baki ke elements jo initialise nhi hai unpr garbage values rakhi hongi,ek bar ap ise compile krke dekhna you will get garbage values while printing the array.

@Mrityunjay19 hey see in this code:
#include <bits/stdc++.h>
#include
using namespace std;

int main()
{int a[20];
for(int i=0;i<10;i++)
{
a[i]=20;
}
for(int i=0;i<20;i++)
cout<<a[i]<<" ";
}

mene pehli 10 initialise kra di and agli 10 nhi to output ye arha hai:
20 20 20 20 20 20 20 20 20 20 4196685 0 0 0 0 0 4196608 0 4196144 0

Hope you get it.