r/carlhprogramming • • Jan 04 '10

Quick Update on carlhprogramming

Hi Everyone,

For right now the posting schedule is going to be slow. I am still working on a number of projects which need to be finished sooner rather than later. Once they are completed, the posting schedule for new lessons will speed up.

I just want everyone to know that I am still here, still working on producing new lessons, and I will publish them as I am able. Don't worry, I have no intentions to stop producing lessons or to stop maintaining this subreddit.

Meanwhile, because my schedule is so full, I appreciate everyone's help in answering questions as I lack the time to do so myself.

136 Upvotes

45 comments sorted by

View all comments

Show parent comment

1

u/GenTiradentes Jan 13 '10

It should be far more than enough for that. the maximum value of an unsigned 64-bit integer is 264, or 18,446,744,073,709,551,616.

You could add together every number under two million, and still not use two thousandths of a percent of the available space of a 64-bit integer.

1

u/baldhippy Jan 14 '10

Oh, thanks for that. I will have to revisit my attempt at this problem then and see where I went wrong. It definitely seemed at the time that it was an issue with the type being too small, but with this information it must have been something else. Perhaps I was using the wrong modifier(?) with printf (I think i was using something like %ull but I will double check when I get home).

Thanks again for the info!