Fabio's Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hoch@lemmy.world to Programmer Humor@lemmy.ml · 2 days ago

More code = more better

lemmy.ml

message-square
25
link
fedilink
269

More code = more better

lemmy.ml

hoch@lemmy.world to Programmer Humor@lemmy.ml · 2 days ago
message-square
25
link
fedilink
  • Tolookah@discuss.tchncs.de
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago

    No

    i= 0;

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

    ?

    Gotta make it hard to read as well

    • anton@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      1 day ago

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

      • Tolookah@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        1 day 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.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 47 users / day
  • 845 users / week
  • 1.22K users / month
  • 1.24K users / 6 months
  • 1 local subscriber
  • 39.5K subscribers
  • 134 Posts
  • 185 Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org