Skip to main content
Contents Index
Dark Mode Prev Up Next
\(\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\Q}{\mathbb Q}
\newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 27.5 Arbitrarily Large Integers
Activity 27.1 .
Recall that the data types
int
and
long int
have limits on the size of numbers they can store. Why again is this so?
Please paste your text submission into the box below, then select Run
to submit it:
In order to be able to store arbitrarily large integers we’ll create a linked list of digits. This will allow us to store as many digits as we’d like (up to the amount of memory available in the computer of course.)
Activity 27.2 .
Define a structure struct digit suitable for this purpose.
When you are done, please paste your structure into the code submission box below: