Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
   search element
Language: C/C++
Code:
#include<stdio.h>
#include<conio.h>
 
int main() {
int a[10],i;
printf("enter the size of an aray");
scanf("%d",&n);
   printf("enter the array elements");
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}                                                                                                                       

printf("the reversed array is:");

for(j=n;j>0;j--)
{
printf("%d",&a[j]);
}
return(0);
getch();
}
          
          
          
          
          
          
          
          
          
Comments: