Given below is the code to insert n elements in an array:
int main ()
{
int n;
Cin>>n;
int arr[];
for(int i =0;i<n;i++)
{
cin>>arr[i];
}
}
why didn’t we write cin.get() after cin>>n and cin>>arr[i] like we do when we have to input sentences in an array.