Limit of an int

Hi
For my calculator i was wondering if the user inputted an extremely large number for multiplication and entered another large number and the result exceeded the limit for an unsigned int how would i make it so that the result doesn't excced it? Would i put the result on the free store or something? Thanks for all of your help.

You can try a library called GMP... it's something many here have recommended (though I have not yet personally tried it). It will allow you to handle such issues without worry.

"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens