Skip to main content
Contents Index
Search Book
Search Results:
No results.
Readability settings 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?
Record your answer below.
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.