What is the algorithm of inserting a data in linear array in c++? Explain by giving suitable example. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What is the algorithm of inserting a data in linear array in c++? Explain by giving suitable example.

31st Jan 2021, 5:25 AM
Yash Garg
Yash Garg - avatar
8 Answers
+ 3
Looks like an assignment question to me. 🤔 Nvm What have you tried so far ?
31st Jan 2021, 5:49 AM
Arsenic
Arsenic - avatar
+ 3
If you can't understand question then here you go 1) you have a linear array already created for you 2) now the user want to add another element to this array 3) all you have to do is to make your program such that user can do it without having to alter your source code.
31st Jan 2021, 5:55 AM
Arsenic
Arsenic - avatar
+ 2
You can easily find on google just type when noone will give u response then use Google someone will response .
31st Jan 2021, 6:39 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
I can't able to understand the question
31st Jan 2021, 5:52 AM
Yash Garg
Yash Garg - avatar
- 1
Please provide the answer
31st Jan 2021, 5:52 AM
Yash Garg
Yash Garg - avatar
- 1
The question is to write algorithm and syntax of inserting data in linear array... Ik the program
31st Jan 2021, 5:59 AM
Yash Garg
Yash Garg - avatar
- 1
You please write algorithm and syntax
31st Jan 2021, 5:59 AM
Yash Garg
Yash Garg - avatar
- 1
Nd if you don't know plz lemme know
31st Jan 2021, 5:59 AM
Yash Garg
Yash Garg - avatar