+ 3

Write a function in C++ which accepts and integer array and its size as argument/parameters and assign the elements.

If array is 1 2 3 4 5 6 then output will be 123456 123450 123400 123000 120000 100000

2nd Jan 2018, 7:02 PM
Uditanshu Singh
Uditanshu Singh - avatar
5 Respuestas
2nd Jan 2018, 9:08 PM
Elie Douaihy
Elie Douaihy - avatar
+ 3
Actually we have to store the values in a 2D array and the parameter is going to be a 1D array and it's size
3rd Jan 2018, 5:42 AM
Uditanshu Singh
Uditanshu Singh - avatar
+ 2
I'm confused, are you just replacing from the back of the array to the front every integer with 0 sequentially? Please, explain this better.
2nd Jan 2018, 7:33 PM
Giancarlo Forero
+ 2
Thank you guys for helping me out. I was finally able to write the code properly. Here it is. https://code.sololearn.com/ctFdO7IIY1Ih/?ref=app
4th Jan 2018, 2:49 PM
Uditanshu Singh
Uditanshu Singh - avatar
0
Answer
28th May 2024, 1:35 PM
Sumit Gupta
Sumit Gupta - avatar