• @[email protected]
    link
    fedilink
    71 month ago

    So, when I want the void to point back at me, do I have to loop over void* or over NULL?
    And how many iterations?

    • @[email protected]
      link
      fedilink
      3
      edit-2
      1 month ago

      as many iterations as it takes

      void* x = &x;
      char* ptr = (char*)&x;
      
      while (1) {
          printf("%d\n", (unsigned int)*ptr);
          ptr--;
      }