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

Why do we use setw in c++?

1055


Explain the difference between using macro and inline functions?

1053


Explain linear search.

1003


Is c++ map a hash table?

972


Explain what is class definition in c++ ?

1047


Define copy constructor.

1057


Why is c++ not purely object oriented?

962


Do you know what is overriding?

1103


How do I tokenize a string in c++?

1025


Explain Text Manipulation Routines?

1039


how to explain our contribution in the project?

3638


Show the application of a dynamic array with the help of an example.

1074


What is anonymous object in c++?

1035


What is a null object in c++?

1151


What can I use instead of namespace std?

1073