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 is static function? Explain with an example

1130


What is a namespace in c++?

2139


What is the use of dot in c++?

1129


Can we use this pointer in a class specific, operator-overloading function for new operator?

1148


Explain the differences between private, public and protected and give examples.

1069


How to access a variable of the structure?

1137


How can I improve my c++ skills?

1194


Difference between pointer to constant vs. Pointer constant

1210


What causes a runtime error c++?

1195


What is the extraction operator and what does it do?

1124


How do you find out if a linked-list has an end?

1178


Where and why do I have to put the "template" and "typename" keywords?

1097


Is std :: string immutable?

1098


What is diamond problem in c++?

1057


what is pre-processor in C++?

1217