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 / chandrasekhar

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

Is This Answer Correct ?    103 Yes 171 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between cin.read() and cin.getline()?

1016


Why #include is used?

1006


What are the advantages of early binding?

1012


What is a pointer with example?

1153


How compile and run c++ program in turbo c++?

1113


Write a struct time where integer m, h, s are its members?

916


What is doubly linked list in c++?

1028


What is the difference between new() and malloc()?

1927


What is flush c++?

920


What is ifstream c++?

979


Differentiate between a pointer and a reference with respect to c++.

1182


Is it possible to provide default values while overloading a binary operator?

1210


What is the purpose of template?

1041


What are the restrictions apply to constructors and destructors?

1029


What is stream and its types in c++?

988