how to store 50 digit number in c laguage?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nilushika
    New Member
    • Sep 2013
    • 20

    how to store 50 digit number in c laguage?

    what is the data type of a variable to store 50 digit number in c? and what is the data type specifier for that?
  • nilushika
    New Member
    • Sep 2013
    • 20

    #2
    can someone please help me?

    Comment

    • pandu13
      New Member
      • Aug 2013
      • 16

      #3
      what is the problem with int,float etc.

      try using arrays.

      Comment

      • nilushika
        New Member
        • Sep 2013
        • 20

        #4
        50 digit means too large ,even 'long double' cannot hold such one!

        Comment

        • pandu13
          New Member
          • Aug 2013
          • 16

          #5
          May be you need to use third party library like this one

          Comment

          • donbock
            Recognized Expert Top Contributor
            • Mar 2008
            • 2427

            #6
            Is this a school assignment where you are constrained to write the code yourself or is it a work assignment where you have the option to buy a third-party library?

            Comment

            Working...