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
What is the difference between cin.read() and cin.getline()?
Why #include is used?
What are the advantages of early binding?
What is a pointer with example?
How compile and run c++ program in turbo c++?
Write a struct time where integer m, h, s are its members?
What is doubly linked list in c++?
What is the difference between new() and malloc()?
What is flush c++?
What is ifstream c++?
Differentiate between a pointer and a reference with respect to c++.
Is it possible to provide default values while overloading a binary operator?
What is the purpose of template?
What are the restrictions apply to constructors and destructors?
What is stream and its types in c++?