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 various oops concepts in c++?
Explain Memory Allocation in C/C++ ?
What is meant by the term name mangling in c++?
How can I disable the "echo" feature?
What are the general quetions are in DEna bank manager IT/System interviews?
What is meant by const_cast?
What are the advantages of c++ over c?
What is void pointer in c++ with example?
What is virtual destructor ans explain its use?
What are special characters c++?
What is a type library?
Which software is best for c++ programming?
Why namespace is used in c++?
Is c++ a float?
Explain the difference between new() and malloc() in c++?