lawrence@lemmy.world to Programmer Humor · edit-211 months agoOk, at some point we made a big mistake.lemmy.worldimagemessage-square40fedilinkarrow-up1310arrow-down15file-text
arrow-up1305arrow-down1imageOk, at some point we made a big mistake.lemmy.worldlawrence@lemmy.world to Programmer Humor · edit-211 months agomessage-square40fedilinkfile-text
minus-squaremindbleach@sh.itjust.workslinkfedilinkarrow-up7arrow-down19·11 months agoBut C is worse than C++, because what if you have a pointer to a pointer?
minus-squareolorin99@kbin.earthlinkfedilinkarrow-up16·11 months agoYou can have a pointer to a pointer in c++ too tho?
minus-squareOmega_HaxorslinkfedilinkEnglisharrow-up3·11 months agoCan you have two pointers pointing at each other?
minus-squareolorin99@kbin.earthlinkfedilinkarrow-up4·11 months agovoid* ptr2 = &ptr1; ptr1 = &ptr2;```
minus-squareUpperBroccoli@feddit.delinkfedilinkarrow-up3arrow-down1·11 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.
Also it is colder at night than it is outside.
Eh?