social.sour.is
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@hoch@lemmy.world to Programmer Humor@lemmy.ml • 4 months ago

More code = more better

lemmy.ml

message-square
25
fedilink
285

More code = more better

lemmy.ml

@hoch@lemmy.world to Programmer Humor@lemmy.ml • 4 months ago
message-square
25
fedilink
  • @Tolookah@discuss.tchncs.de
    link
    fedilink
    7•4 months ago

    No

    i= 0;

    do{ i++; } while (10 != *(U32 *) i );

    ?

    Gotta make it hard to read as well

    • @anton@lemmy.blahaj.zone
      link
      fedilink
      3•4 months ago

      Segmentation fault, you forgot to take the reference and derefenced a null pointer.

      • @Tolookah@discuss.tchncs.de
        link
        fedilink
        1•4 months ago

        i is my address. The bigger problem is that I should have increased i by sizeof(U32)

        (This works on bare metal, mostly, not on an os)

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 191 users / day
  • 197 users / week
  • 1.88K users / month
  • 5.55K users / 6 months
  • 41.6K subscribers
  • 2.05K Posts
  • 42.4K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org