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
Explain the concept of memory leak?
What is vector string in c++?
What is this weird colon-member (" : ") syntax in the constructor?
Can char be a number c++?
What is a stack? How it can be implemented?
Why do we use pointers in c++?
What is a friend function in c++?
What is ctime c++?
Explain register storage specifier.
What are the advantages of using typedef in a program?
What things would you remember while making an interface?
Explain unexpected() function?
What does asterisk mean in c++?
Define a conversion constructor?
When do we use copy constructors?