printf("Element: %x\n", *element); Így lenne jó: if (element != nullptr) { printf("Element: %x\n", *element); } else { printf("Congratulations, you've found the borked index!\n"); }