03-13-2013 05:24 AM
how can one insert columns of an array into another array at every odd place of that array in which insertions are to be made? In short, columns of one array to be inserted into another array bt possibly in between the already initialised array.
Solved! Go to Solution.
03-13-2013 05:32 AM
So I assume you're atlking about 2D arrays, right?
I'm not too sure that "inserting a column" in the correct wording for what you want, maybe you want to replace some value in a specific column of an array.
Can you give a simple example of what you want, like the 2D array before is :
A - B - C
D - F - G
And after "inserting a column" with 0 - 1 , what do you expect?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
03-13-2013 05:48 AM
thanks for reply.
what basically is the need is i have an array,say
Array 1
1 2 3 4
5 6 7 8
and i have another array,
Array 2
10 11
12 13
the output i want is
1 2 10 3 4 11
5 6 12 7 8 13
see, the array 2 is inserted in array 1 column wise.
03-13-2013 06:04 AM
here's an example, feel free to ask question if it's not clear for you.
hope it helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
03-13-2013 06:07 AM
ah...thank you so much..silly of me i shud hv used shift registers from the begining...lost it...
thanks a lot...:)