How to handle numbers larger than long long int for stoi, stol and stoll?

We know stoi, stol and stoll are used to convert string data type to int data type. But what if the number is itself greater than pow(2,64). Is there any way or built function to convert the largest string to a number?

I think NO

1 Like

Then it would definitely ask you to find the integer value modulo some prime