What is the Big Integer in C++?

C++ Big Integer.

Big integer in nothing but a replication of BigInteger class of java that are used to handle a very big integer that could not be handle by long long data type of C/C++ lang.

You can see the full code [HERE][1]

Instead you can also use a header file

include "boost/multiprecision/cpp_int.hpp"

It will provide the same environment that above line code do!

I hope you understand otherwise feel free to ask!
[1]: http://codeforces.com/blog/entry/16380

Refer this

codeforces

1 Like

CPP have something like bigInteger class of java…
boost library is one such( I don’t know is there anything else also ?)…

here is a short example for using boost library

#include <iostream>
#include <boost/multiprecision/cpp_int.hpp>

using namespace std;
namespace mp = boost::multiprecision;

#define bint mp::cpp_int

int main()
{
    bint a, b;
    cin>>a>>b;
    cout<<a*b<<endl;
    return 0;
}
1 Like

please view this website

http://www.computerprogrammingtutorial.com

http://www.computerprogrammingtutorial.com/2016/07/c-programming.html