if i am understanding this right t gets read from input and the first for loop says thats how many elements we are going to use in the array and assign them values...please correct me if i am wrong. Then the second for loop loops through each index of the array right? Assuming that I am correct how do I access the value in each index? I have tried many different ideas but I am always wrong. Any help is greatly appreciated :)Code:int i,t;
int arr[10];
scanf("%d", &t);
for(i=1;i<=t;i++)
scanf("%d", &arr[i]);
for(i=1;i<=t;i++)
{
}