Link to home
Start Free TrialLog in
Avatar of vbmn
vbmn

asked on

SUM 2 INTEGER ARRAYS INTO 1

How to sum 2 integer arrays into 1 array ?

For example : maximum integer value is 10  ! ! ! ! !

Thank You.
Avatar of Mike McCracken
Mike McCracken

What do you mean by sum 2 integer arrays?

Given
array 1 - 1  2  3
array 2 - 4  5  6

Result  - 5  7  9
or
Result - 1  2  3  4  5  6
or
something else

mlmcc
Avatar of vbmn

ASKER

Thanks for comment mlmcc !

Result  - 5  7  9

Thank You !
Since this is a typical learning exercise, what have you done thus far?

How do you iterate through an array?

mlmcc
Avatar of vbmn

ASKER

I just gave an example of a question,
and I wanted to apply the summation arrays at higher maximum number of 10 !

As 0..16777215 !
24-bit !
or
QWORD 64-bit !

Thank You.
what has 10 got to do with this question ?

you aren't making much sense

what's with the exclamation marks ! after each number ?

do you always write numbers ending with a !    ?

if you put a qword in an integer, you'll get a range check error.
if you haven't switched it off in the compiler options ... i think it's off by default
Avatar of vbmn

ASKER

10 is an example of the maximum numbers !

However, I want to apply Your solution to a higher maximum numbers !

What applied to pictures, sound, date, etc. !

As 16-bit (sound), 24-bit (image), 32-bit (3D color), 64-bit (date) !

Thank You.
with 10 you mean the length of the number

i assume english is not your native language ?
Avatar of vbmn

ASKER

I have translated the commentary on google translator!

If it helps to get a solution!

Thank You.
It looks like english will be a bigger problem than explaining how to program
ASKER CERTIFIED SOLUTION
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial