code for c o store very big number, computer use arrays of integer with each integer representing a digit of the big num
Posted: Fri Apr 29, 2022 6:55 am
code for c
o store very big number, computer use arrays of integer with
each integer representing a digit of the big number. Write a
function void subtractBigNumber(int
n1[], int n2[], int result[], int
sizeNumbers) which will
subtract n2 from n1 and
store the answer in result.
No change must be made
on n1 and n2. Do
not take care of negative big numbers.
You will also need to write a print_array function similar to
that used in lab 10.
For example:
o store very big number, computer use arrays of integer with
each integer representing a digit of the big number. Write a
function void subtractBigNumber(int
n1[], int n2[], int result[], int
sizeNumbers) which will
subtract n2 from n1 and
store the answer in result.
No change must be made
on n1 and n2. Do
not take care of negative big numbers.
You will also need to write a print_array function similar to
that used in lab 10.
For example: