When an integer is very large, it is usually represented by an array of characters. For example, your number is 100 digits. It can be represented by applying for a character array with the length of 10 1. For example, there should be no100th power of 2, so there is no need to apply for a large space. The maximum length of static application array in vc seems to be more than1.20 thousand, which means that you can handle integers with the length exceeding1.20 thousand, which should meet the general requirements for integers. Dynamic applications can also apply for more space.
I wonder if the answer meets your requirements. If not, you can give a concrete example and I will help you analyze it.
Of course, when an integer is represented by a character array, the four related operations should be programmed accordingly.