hoch@lemmy.world to Programmer Humor@lemmy.ml · 1 day agoMore code = more betterlemmy.mlimagemessage-square25fedilinkarrow-up1265arrow-down16
arrow-up1259arrow-down1imageMore code = more betterlemmy.mlhoch@lemmy.world to Programmer Humor@lemmy.ml · 1 day agomessage-square25fedilink
minus-squareTolookah@discuss.tchncs.delinkfedilinkarrow-up6·1 day agoNo i= 0; do{ i++; } while (10 != *(U32 *) i ); ? Gotta make it hard to read as well
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up3·19 hours agoSegmentation fault, you forgot to take the reference and derefenced a null pointer.
minus-squareTolookah@discuss.tchncs.delinkfedilinkarrow-up1·18 hours 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)