Sjmarf@sh.itjust.works to Programmer Humor · 6 months agovoid *sh.itjust.worksimagemessage-square13fedilinkarrow-up1647arrow-down110
arrow-up1637arrow-down1imagevoid *sh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor · 6 months agomessage-square13fedilink
minus-squaresuslinkfedilinkarrow-up3·edit-26 months agoas many iterations as it takes void* x = &x; char* ptr = (char*)&x; while (1) { printf("%d\n", (unsigned int)*ptr); ptr--; }
as many iterations as it takes
void* x = &x; char* ptr = (char*)&x; while (1) { printf("%d\n", (unsigned int)*ptr); ptr--; }