lawrence@lemmy.world to Programmer Humor@lemmy.ml · edit-29 months agoOk, at some point we made a big mistake.lemmy.worldimagemessage-square35fedilinkarrow-up1295arrow-down15file-text
arrow-up1290arrow-down1imageOk, at some point we made a big mistake.lemmy.worldlawrence@lemmy.world to Programmer Humor@lemmy.ml · edit-29 months agomessage-square35fedilinkfile-text
minus-squaremindbleach@sh.itjust.workslinkfedilinkarrow-up6arrow-down17·9 months agoBut C is worse than C++, because what if you have a pointer to a pointer?
minus-squareolorin99@kbin.earthlinkfedilinkarrow-up14·9 months agoYou can have a pointer to a pointer in c++ too tho?
minus-squareOmega_Haxors@lemmy.mllinkfedilinkEnglisharrow-up2·9 months agoCan you have two pointers pointing at each other?
minus-squareolorin99@kbin.earthlinkfedilinkarrow-up4·9 months agovoid* ptr2 = &ptr1; ptr1 = &ptr2;```
minus-squareUpperBroccoli@feddit.delinkfedilinkarrow-up3arrow-down1·9 months agoAlso it is colder at night than it is outside.
But C is worse than C++, because what if you have a pointer to a pointer?
You can have a pointer to a pointer in c++ too tho?
Can you have two pointers pointing at each other?
void* ptr2 = &ptr1; ptr1 = &ptr2;```
You don’t say.
Eh?
Also it is colder at night than it is outside.