Write a c program to reverse the number using array.

#include<stdio.h>
#include<conio.h>
  main()
{
  int arr[10],a,b,i,temp;
  clrscr();
  printf("\n enter the values of array");
  scanf("\n %d%d",&arr[a],arr[b]);
  temp=arr[a];
  arr[a]=arr[b];
  arr[b]=temp;
  printf("\n %d%d",arr[a],arr[b]);
  return (0);
}

 output:-
  enter the value of arr[a]=5
  enter the value of arr[b]=8
  [a]=8
  [b]=5