You are here:

C++/programming

Advertisement


Question
find the reverse contents of array in turbo c++.

Answer
Hi Qaiser

Try this out

#include<stdio.h>
void main()
{
int arr[100], n, i;
printf("No of elements: ");
scanf("%d",&n);
for(i=0;i<n;i++)
{
printf("\nEnter %d element: ",i+1);
scanf("d",&arr[i]);
}

//reverse content
for(i=n-1;i>=0;i--)
printf("\n%d",arr[i]);

}

For more simplex and complex program like this you can try out my personal website at http://www.scodz.com

Please feel free to revert back to me in case of any problems.

regards
Joydeep Bhattacharya
http://www.scodz.com

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joydeep Bhattacharya

Expertise

TSR, Socket and Very Complex Mathematical Problem

Experience

Worked on many OOP projects with design patterns

Organizations
http://www.scodz.com

Publications
http://www.scodz.com

Education/Credentials
Master of Computer Applications

Awards and Honors
Being a proud owner of a website of programming called http://www.scodz.com

Past/Present Clients
http://www.funforu.com http://www.dhoondho.com http://analysingc.50webs.com

©2016 About.com. All rights reserved.