integer
आकार का बड़ा पूर्णांक डेटा कैसे संभालना है integer
का आकार 4, long long int
8 बाइट है और यह लगभग 1 9 अंकों के डेटा तक पहुंच सकता है और बिना लंबे समय तक लंबे आकार के इंट आकार के लिए 8 बाइट भी हैंडल लंबे समय तक int से बड़ा मूल्य लेकिन यह 20 अंकों से कम है। क्या कोई ऐसा तरीका है जो 20 अंकों से अधिक डेटा संभाल सकता है।8 से अधिक बाइट या सी ++
#include<iostream>
using namespace std;
int main()
{
unsigned long long int a;//any data type more than 8 byte can handle
cin>>a;
if(a>789456123789456123123)//want to take a higher thand this digits
{
cout<<"a is larger and big data"<<endl;
}
}
मैं थोड़ी देर के लिए इस बारे में खोज की, लेकिन उपयोगी contents.All नहीं मिला जावा biginteger
है के बारे में।
[जीएमपी] (https://en.wikipedia.org/wiki/GNU_Multiple_Precision_Arithmetic_Library) का हो सकता है देखते हैं ब्याज। –