Re:Show HN: C++ Editor for Teaching How to Code
by lasagnaphil on Sunday January 20, 2019 @07:59AM
(#18952834)
This code, which is clearly undefined behavior (because of dangling pointer), outputs the number 2, which is very worrisome.
I would recommend not using this for educational purposes yet; it could mislead students about pointer usage.
[ Parent
| on HN ]
Re:Show HN: C++ Editor for Teaching How to Code
by goalexboxer on Sunday January 20, 2019 @02:02PM
(#18954843)
Fair point, I will definetly try to use a different compiler next time. Thanks for pointing this out!