Sjmarf to Programmer Humor@programming.dev · 8 months agovoid *imagemessage-square13fedilinkarrow-up1644arrow-down110
arrow-up1634arrow-down1imagevoid *Sjmarf to Programmer Humor@programming.dev · 8 months agomessage-square13fedilink
minus-squaresus@programming.devlinkfedilinkarrow-up3·edit-28 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--; }