Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
Get HideMyAss! VPN, PC Mag's Top 10 VPNs of 2016 for 55% off for a Limited Time ×
User Journal

Journal General Wesc's Journal: Three large numbers 1

I'm looking for three large numbers that will add up to ten via overflow. I'm not sure how large the integers (or maybe even floats) are, so it may take some trial and error.
This discussion has been archived. No new comments can be posted.

Three large numbers

Comments Filter:
  • by Stavr0 ( 35032 )
    void main()
    {
    const unsigned long A = 1431655771;
    const unsigned long B = 1431655768;
    const unsigned long C = 1431655767;

    unsigned long ten;

    ten = a + b + c;

    printf("%lu",ten);
    }

Our policy is, when in doubt, do the right thing. -- Roy L. Ash, ex-president, Litton Industries

Working...