Adding a big number into array

when i run the program i want to add a big integer number into an int array
how can i do it.i don't want to use for loop
Thank you
Last edited on
You should use 64 bit mode with size_t for unsigned. Also there are signed versions.
i want to add very big number about 30 or 40 digits i want to do similar this:

int array num[40];
and then i want to save every digit in one index
for example to save: 485648.....
num[0] = 4 , num[1] = 8 , num[2] = 5 and so on.
You'll have to do it the same way they do in grade school, pairing from least-significant to most-significant digit. Don't forget to carry!

Good luck!
Topic archived. No new replies allowed.