How To create Larger Data type in C

Discussion in 'C' started by jayaraj_ev, Aug 29, 2007.

  1. jayaraj_ev

    jayaraj_ev New Member

    Joined:
    Aug 29, 2007
    Messages:
    20
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    Software engineer
    Location:
    Bangalore
    Hi,
    Can you create a data type in "C" were we can store 20 bytes and perform simple arithmentic operations like +, -

    for example

    New_Type A, B, C;
    A = 0xFFFFFFFFFFFFFFFFFFFFFFFFFF;
    B = 0xFFFFFFFFFFFFFFFFFFFFFFFFFF000;
    C = A + B;

    Thanks in advance
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Check out a bignum library.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice