Does memorizing these things really have any utility?
the number of bytes should come naturally to you, it takes like 30 seconds to "memorize".the range you'd know in terms of powers of two, not the exact numbers
>>110487984Nobody made an effort to memorize this.It came naturally as you programed in C.(I'm speaking in paste tense because programming is obsolete.)
>>110487984This is just 2^8, 2^16, 2^32, why would you need to memorize anything
>>110487984Is memorizing too hard for you? Is this actually intimidating for you?
>>110488167I can somehow, but outside the specific thing I'm currently in it feels weird
>>110488075>>110488147motherfucker i fucking knew it, my professor taught me to memorize this shit, and i did, but he never explained the why nor the pattern behind it, no wonder i now work as a fucking sysadmin grunt, i should've known better to not do what people told me literally, fuuuuuuuuuuuuuuuuuuuuuuuuuuuck
>>110487984>>110488292if u didnt notice this obv pattern then u wouldnt have made it in the field anyway
>>110488336i'm just following orders man, being a good boy and all.fucking hell.
>>110488292i mean it can be a cool party trick to know the exact value of 2^32 but other than that it's quite useless
>>110488292Did your math teacher need to explain to you that the max number three digits could hold is 999? It's not his fault you got IQ mogged.
>>110488487nice base-10 assumption. who's getting iq mogged here.
Use case?
>>110488417Knowing the exact value of 2^32 and 2^64 is pretty irrelevant too, for all use cases they're 4 billions and "big enough" respectively
>>110488539One can assume radix is ten if not specified, and from context that's clearly implied here. A lot of math notation has context-specific assumptions because people who do math are assumed to not be chromosome hoarders.
>>110487984If you have to ask, probably not.
>>110487984This is actually incorrect, as it's platform dependent.
>>110487984>16-bit intWhat is this, 1985?you should know ranges for 1, 4, and 8-byte integer typesknowing the range of a single byte will clue you in to how you couldn’t carry more than 255 rupees in the original legend of zelda4-byte integer types can hold 4 billion different valuesif they’re signed, the range goes from -2 billion to +2 billionyou should also know doubles because they’re the default number type and the only number type in JavaScripthttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER is useful there
>>110487984>include <stdint.h>Not my problem
>>110487984>memorizeThe nocoders out themselves instantly. Same morons who spout “memorizing le syntax is obsolete!” as if programming were just drilling flash cards or something. Did you “memorize” how to walk? Did you “memorize” how to drive a car? No you just learn by doing. Anyone who rejoices in not having to memorize things anymore never struggled with that problem before either because it is obvious from the complaint they never even tried in the first place.
always thought it was retarded to memorize things when you can just either remember it naturally or google it
>>110487984This table is wrong.You have to use fixed-size types to get consistent byte lengths.
>>110489040>just either remember it naturallysometimes you can’t do this in the time you’ve alloted for yourselfand you gotta sigma grindset
>>110489057this. the only guarantee are certain inequalities on size between the different types.
>>110489186that shit is for the birds, not mei member shit i member, i don't try to force it
>>110487984>>110488292So you memorized the ranges without being taught why the ranges exist and what a float actually is?
>>110488292are you retarded perhaps
>>110488292Ignore the fucks blaming you. Teachers fuck up a lot of people.
>>110488147what power of 2 is 255? How about 65,535? 4,294,967,295?
>>110491032i'm fine anon, everything is fine.
>>110491126
>>110487984I've always used int's in huge "for" loops (millions or more iterations) in Python and I never had issues.
>>110487984Do you go to an Indian college or something?
>>110491536shitty bait you don't use declare types in python
>>110487984kind of does. there's a reason why it's standardized like that from the history of word sizes. all real low level languages have you choose an integer type in some way or another
>>110488292if you couldn't figure this out then you are entirely uneducated in the field of computer science. something was presented to you and you accepted it blindly, never thinking to ask why. also, that table is terrible. the floating point types are underspecified, and the integer types are implementation defined.