CS246 Homework 3: pointers and arrays

Due: Monday, Feb 20, 2012 - 2:30pm (before class)

What to hand in:

Big int [100pts]

In this program we will simulate very large integers with arrays in the following way: digits are stored into the array starting with the least significant. That is, given an integer 123, it is stored with 3 at index 0, 2 and index 1 and 1 at index 2.

Write the following functions:

Copy the framework code ~dxu/handouts/cs246/bigint_frame.c and use it as a starting point. A main complete with test cases as well as a print function have been provided for you. Additional requirements: