0

Question of arrays

Can the elements of arrays of different lenghts sum(+)?for example: {1,2,3,}+{5,6,7,8,9,3} => {1+5,2+6,3+7,1+8,2+9,3+3} is it possible?

11th Oct 2017, 6:24 AM
Женя Сторожев
Женя Сторожев - avatar
1 Resposta
+ 2
u cant add 2 arrays like this. to do this you need to assign a variable, increment it & use it as index to add it to another variable.
11th Oct 2017, 9:06 AM
shobhit
shobhit - avatar