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
Why do we use setw in c++?
Explain the difference between using macro and inline functions?
Explain linear search.
Is c++ map a hash table?
Explain what is class definition in c++ ?
Define copy constructor.
Why is c++ not purely object oriented?
Do you know what is overriding?
How do I tokenize a string in c++?
Explain Text Manipulation Routines?
how to explain our contribution in the project?
Show the application of a dynamic array with the help of an example.
What is anonymous object in c++?
What is a null object in c++?
What can I use instead of namespace std?