Insertion of an element into array

Newbie Member
26Sep2007,20:44   #1
sbvishal's Avatar
I want a code for inserting the element into array either sorted or unsorted.
Anybody known to this please reply.
Thanks
Vishal Singh
Go4Expert Founder
26Sep2007,21:09   #2
shabbir's Avatar
As you have posted your query in the Introduce yourself forum we by no means can understand what programming language you are asking your question in and so can you share that information.
Newbie Member
27Sep2007,00:17   #3
sbvishal's Avatar
Quote:
Originally Posted by shabbir
As you have posted your query in the Introduce yourself forum we by no means can understand what programming language you are asking your question in and so can you share that information.
My query is related to C/C++.
Thanks for response...
Go4Expert Founder
27Sep2007,10:26   #4
shabbir's Avatar
Moved to C-C++ forum. Also about your query you have 2 options.

1. You need to shift the elements of the array down and then insert it into place you would like to
2. Coping the content into new array in 3 parts. First part the original content of the array then the new element and then rest from the original content.