hello everyone.. please help me with my program. Please help me solve a program that could accept more than 10 digits.
Thanks
hello everyone.. please help me with my program. Please help me solve a program that could accept more than 10 digits.
Thanks
I don't see a program, therefore there's nothing to help with.
When I was in high school I vaguely remember doing some type of Big Integer case study for the AP Computer Science exam. The case study was universal for the test given that year, so if you Google it, you should be able to find something about it.
Take number as string. Also long int, long long etc etc may take number till 10 digits.
No use link list to represent as big numbers as you want.
Take number as string. Also long int, long long etc etc may take number till 10 digits.
long int (on most 32 bit systems, anyway) will not take full range of 10 digit numbers, as it's allocated just 4 bytes.
long long int will be sufficient, handling full range of 19 digits, plus some of the 20th.
Val
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.