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
When do we run a shell in the unix system? How will you tell which shell you are running?
What is c++ and its uses?
What is a hashmap c++?
Is java made in c++?
What is difference between class and function?
What is object in c++ wikipedia?
What is the size of a vector?
What are manipulators in c++ with example?
Explain operator overloading.
What is the basic structure of a c++ program?
Why Pointers are not used in C++?
What are the vectors in c++?
what are function pointers?
Explain dangling pointer.
In c++, what is the difference between method overloading and method overriding?