NekuSoul-Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
InternetCitizen2@lemmy.world to Programmer Humor@lemmy.ml · 2 年前

What are the best books?

lemmy.world

message-square
62
link
fedilink
728

What are the best books?

lemmy.world

InternetCitizen2@lemmy.world to Programmer Humor@lemmy.ml · 2 年前
message-square
62
link
fedilink
  • Laura@lemmy.ml
    link
    fedilink
    arrow-up
    12
    ·
    2 年前

    • LemoineFairclough@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 年前

      *(char*)0 = 0; - What Does the C++ Programmer Intend With This Code? - JF Bastien - C++ on Sea 2023

      https://www.youtube.com/watch?v=dFIqNZ8VbRY

    • milicent_bystandr@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      How would you use that for debugging?

      (Sry I’m too cheap to go and buy the book)

      • jxk@sh.itjust.works
        link
        fedilink
        arrow-up
        7
        ·
        2 年前

        My best guess is that in some configurations it raises SIGSEGV and then dumps core. Then, you use a debugger to analyse the core dump. But then again you could also set a breakpoint, or if you absolutely want a core dump, use abort() and configure SIGABRT to produce a core dump.

      • Laura@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        to see whether your code has executed a certain path (like printf(“here”) but as a crash)

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.

  • 57 users / day
  • 889 users / week
  • 1.58K users / month
  • 5.12K users / 6 months
  • 1 local subscriber
  • 43K subscribers
  • 1.41K Posts
  • 24.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org