673

Which will probably be never.

you are viewing a single comment's thread
view the rest of the comments
[-] marcos@lemmy.world 3 points 1 month ago

Odds are that your computer doesn't export any language where it will do exactly as you say (amd64 machine code certainly won't execute exactly as written). And how much difference it makes varies from one language to another.

But the specific example from the OP, of uninitialized variables, is one of those cases where the C spec famously goes completely out of line and says your code can do whatever, run with a random value, fail, initialize it, format your hard drive, make a transaction on your bank account... whatever.

[-] Hack3900@lemy.lol 2 points 1 month ago

Coding in C but if I don't initialize a Variable the compiler formats my drive! (Not Clickbait)

this post was submitted on 15 Aug 2024
673 points (98.4% liked)

Programmer Humor

19178 readers
1042 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS