Write a program to enter the elements in reverse order in one dimensional array | Arrays And Strings | Basic Programming of c

  Basic Programming of c 




List of Experiments 


Arrays And Strings

Write a program to enter the elements in reverse order in one dimensional array


-----------------------------------------------------------------------------------

#include<stdio.h>

#include<conio.h>

void main()

{

int i;

int a[5]={1,2,3,4,5};

for(i=4;i>=0;i--)

{

printf("%d \n",a[i]);

}

}

-----------------------------------------------------------------------------------

Copy code from here:-