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 is static function? Explain with an example
What is a namespace in c++?
What is the use of dot in c++?
Can we use this pointer in a class specific, operator-overloading function for new operator?
Explain the differences between private, public and protected and give examples.
How to access a variable of the structure?
How can I improve my c++ skills?
Difference between pointer to constant vs. Pointer constant
What causes a runtime error c++?
What is the extraction operator and what does it do?
How do you find out if a linked-list has an end?
Where and why do I have to put the "template" and "typename" keywords?
Is std :: string immutable?
What is diamond problem in c++?
what is pre-processor in C++?