Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program to insert an element into an array

Answer Posted / saranya

#include<iostream.h>
#include<conio.h>
void main()
{
int a[5],i;
clrscr();
cout<<"enter the element to be inserted into an array";
for(i=0;i<5;i++)
{
cin>>a[i];
}
for(i=0;i<5;i++)
{
cout<<a[i];
}
getch();
}

Is This Answer Correct ?    21 Yes 50 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of container classes?

1082


How does java differ from c and c++?

922


Is java made in c++?

998


Define the process of error-handling in case of constructor failure?

958


What is c++ in english?

995


Can I uninstall microsoft c++ redistributable?

1036


Differentiate between late binding and early binding.

1195


Why main function is special in c++?

1056


which of the following is not an secondary constant a) array b) real c) union

1753


Is the declaration of a class its interface or its implementation?

1119


Difference between a copy constructor and an assignment operator.

933


Explain rtti.

1022


What is flush () in c++?

1029


Is c++ still in demand?

1104


what you know about c++?

1088