hoch@lemmy.world to Programmer Humor@lemmy.ml · 8 hours agoMore code = more betterlemmy.worldimagemessage-square23fedilinkarrow-up1177arrow-down13
arrow-up1174arrow-down1imageMore code = more betterlemmy.worldhoch@lemmy.world to Programmer Humor@lemmy.ml · 8 hours agomessage-square23fedilink
minus-squareTolookah@discuss.tchncs.delinkfedilinkarrow-up6·7 hours agoNo i= 0; do{ i++; } while (10 != *(U32 *) i ); ? Gotta make it hard to read as well
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up3·2 hours agoSegmentation fault, you forgot to take the reference and derefenced a null pointer.
minus-squareTolookah@discuss.tchncs.delinkfedilinkarrow-up1·1 hour agoi is my address. The bigger problem is that I should have increased i by sizeof(U32) (This works on bare metal, mostly, not on an os)
No
i= 0;
do{ i++; } while (10 != *(U32 *) i );
?
Gotta make it hard to read as well
Segmentation fault, you forgot to take the reference and derefenced a null pointer.
i is my address. The bigger problem is that I should have increased i by sizeof(U32)
(This works on bare metal, mostly, not on an os)