0

C++ code to Copy one dimeensional array to another new one , same size and type. Using two nested for statement.

12th May 2017, 1:38 PM
shad oow
shad oow - avatar
3 Réponses
+ 2
If you have allocated this array like a single block of memory(static array) You could use only memcpy function and copy whole block of memory without any loop;)
12th May 2017, 2:09 PM
Highman
Highman - avatar
+ 1
Its for assignnent Q's , and i dont know why he need a loops for 2
12th May 2017, 2:16 PM
shad oow
shad oow - avatar
0
why do you need two for loops
12th May 2017, 1:52 PM
Iken Sama
Iken Sama - avatar