write a program to insert an element into an array
Answer Posted / chandrasekhar
#include<iostream.h>
#include<conio.h>
void main()
{
int a[5];
int i;
clrscr();
cout<<"enter the elements into an array";
for(i=0;i<5;i++)
{
cin>>a[i];
}
getch();
}
| Is This Answer Correct ? | 103 Yes | 171 No |
Post New Answer View All Answers
Can we use struct in c++?
What are stacks? Give an example where they are useful.
Is string data type in c++?
What are c++ data types?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What are shallow and deep copy?
What is a dll entry point?
What happens when you make call 'delete this;'?
What is different in C++, compare with unix?
Describe the advantages of operator overloading?
What is microsoft c++ redistributable?
Define linked lists with the help of an example.
What is c++ w3school?
What is code reusability in c++?
Who invented turbo c++?