Remo opined:
suppose if you have a 32 bit machine and your compiler supports upto
32 bit. How can you store a number like
78919237816924523565634563346124978162347811234123 4166 x 4
into one variable. but this big number you can't store in any
varible. because our compiler supports upto 32 bit only.
Use an array of integers instead. Make it as long as the biggest number
you'll need, or allocate it dynamically. One way could be:
#define BIG_NUM_SIZE 42
unsigned char big_num[BIG_NUM_SIZE];
Each array element can now hold up to CHAR_BIT number of bits (the
number of bits in a byte for your implementation; see <limits.h>) of
your big number. It is, of course, up to you to provide means of doing
stuff to such numbers (arithmetic, etc).
Depending on your needs, you may use a different type.
--
"Besides, I think [Slackware] sounds better than 'Microsoft,' don't
you?"
(By Patrick Volkerding)
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>