Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Insertion of an element into array (http://www.go4expert.com/forums/insertion-element-array-t6550/)

sbvishal 26Sep2007 20:44

Insertion of an element into array
 
I want a code for inserting the element into array either sorted or unsorted.
Anybody known to this please reply.
Thanks
Vishal Singh

shabbir 26Sep2007 21:09

Re: Insertion of an element into array
 
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.

sbvishal 27Sep2007 00:17

Re: Insertion of an element into array
 
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...

shabbir 27Sep2007 10:26

Re: Insertion of an element into array
 
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.


All times are GMT +5.5. The time now is 07:57.