Traversing 1D Array in Reverse direction

Notes:

C Program to Traverse & Print 1D Array in Reverse Direction:

Traversing 1D array in C:
- Traversing means looping through each element in an array
- i.e. accessing each element in an array using looping or iterative statements

Traversing 1D array in reverse direction:
- To traverse 1D array in reverse direction; we take help of reverse for loop

int numbers[5] = {10,20,30,40,50};
int i=0;

for(i=4; i>-1; i--)
{
printf("%d\n", numbers[i]);
}