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

Can we use struct in c++?

1026


What are stacks? Give an example where they are useful.

1061


Is string data type in c++?

1035


What are c++ data types?

1169


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

1082


What are shallow and deep copy?

1120


What is a dll entry point?

1007


What happens when you make call 'delete this;'?

1102


What is different in C++, compare with unix?

1101


Describe the advantages of operator overloading?

1048


What is microsoft c++ redistributable?

1098


Define linked lists with the help of an example.

1028


What is c++ w3school?

1111


What is code reusability in c++?

1244


Who invented turbo c++?

1072