Insertion of an element into array

sbvishal's Avatar, Join Date: Jun 2007
Newbie Member
I want a code for inserting the element into array either sorted or unsorted.
Anybody known to this please reply.
Thanks
Vishal Singh
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
0
sbvishal's Avatar, Join Date: Jun 2007
Newbie Member
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...
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.