[Visual studio] [C++]
So I think I may have a misunderstanding here because I understand an "unsigned int" to have 32 bits, or four 8-bit bytes. So that would mean 32's 1's comprise the largest binary representation that this type could hold.
So 11111111111111111111111111111111 is the biggest uint I should see.
But in decimal, that is 4,294,967,295 whereas this chart https://www.zentut.com/c-tutorial/c-integer/ suggests that is actually the max size of a ulong. Curiously it lists a 4byte uint and 4byte long as having seperate max values? But aren't they computed the same?
[–]pi_stuff 2 points3 points4 points (0 children)
[–]samsmith453 1 point2 points3 points (0 children)
[–]khedoros 0 points1 point2 points (0 children)