Skip to content

anoushkagupta876/Big-Integers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

BigInt

In C++, we can use large numbers by using the boost library. We can indeed use different datatypes like int128_t, int256_t, int1024_t etc. But in C no such features exist.

Therefore, to representing numbers in the range of -263-1 to 263-1 in C, we must build our own datatype called BigInt.

This program successfully implements BigInt in C with the addition and subtraction functionalities.

Addition:

  • 44 + 55 = 99
  • (-44) + 55 = 11
  • 44 + (-55) = -11
  • (-44) + (-55) = 9

Subtraction:

  • 44 - 55 = -11
  • (-44) - 55 = -99
  • 44 - (-55) = 99
  • (-44) - (-55) = 11

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages