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
What are the types of container classes?
How does java differ from c and c++?
Is java made in c++?
Define the process of error-handling in case of constructor failure?
What is c++ in english?
Can I uninstall microsoft c++ redistributable?
Differentiate between late binding and early binding.
Why main function is special in c++?
which of the following is not an secondary constant a) array b) real c) union
Is the declaration of a class its interface or its implementation?
Difference between a copy constructor and an assignment operator.
Explain rtti.
What is flush () in c++?
Is c++ still in demand?
what you know about c++?