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 C++ objects?

1202


what is pre-processor in C++?

1177


How can I disable the "echo" feature?

1180


Why is standard template library used?

1064


What does std mean in c++?

1138


Should a constructor be public or private?

1045


What can I safely assume about the initial values of variables which are not explicitly initialized?

1066


Explain "const" reference arguments in function?

1072


What is the difference between map and hashmap in c++?

1123


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

1054


Show the declaration for a pointer to function returning long and taking an integer parameter.

1153


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

1022


What is the type of 'this' pointer?

1026


What is size of string in c++?

992


Why do we learn c++?

981