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 C++ objects?
what is pre-processor in C++?
How can I disable the "echo" feature?
Why is standard template library used?
What does std mean in c++?
Should a constructor be public or private?
What can I safely assume about the initial values of variables which are not explicitly initialized?
Explain "const" reference arguments in function?
What is the difference between map and hashmap in c++?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What is the type of 'this' pointer?
What is size of string in c++?
Why do we learn c++?