Finally I have a valid reason to learn about memory management. It was also hella weird when encountering it.

  • da_cow (she/her)@feddit.orgOP
    link
    fedilink
    arrow-up
    8
    ·
    10 days ago

    That’s the funny thing. I had a (yet) very basic Programm and did not care at all about memory management. When I did some testing I realised, that for some reason when I printed string 1 I also got characters from string 2.

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      12
      ·
      10 days ago

      That sounds like it could be memory corruption. That should not happen because every string should be separated by a null terminator.