HeyMrDeadMan@lemmy.world to Ask Lemmy@lemmy.worldEnglish · 5 days agoIndex and middle, or middle and ring?NSFWmessage-squaremessage-square12linkfedilinkarrow-up110arrow-down18file-text
arrow-up12arrow-down1message-squareIndex and middle, or middle and ring?NSFWHeyMrDeadMan@lemmy.world to Ask Lemmy@lemmy.worldEnglish · 5 days agomessage-square12linkfedilinkfile-text
minus-squareSlicedPotato@feddit.dklinkfedilinkarrow-up2·2 days agoThe two else ifs should be switched, because if the second one is true, the first one is also always true, so you’ll never reach the second one.
minus-squareprintf("%s", name);@piefed.blahaj.zonelinkfedilinkEnglisharrow-up2·2 days agoThanks! I’m just trying to learn some on my free time 🤣
The two
else ifs should be switched, because if the second one is true, the first one is also always true, so you’ll never reach the second one.Thanks! I’m just trying to learn some on my free time 🤣