|
|
|
|
|
by RcouF1uZ4gsC
1466 days ago
|
|
This is undefined behavior. According to the C++ standard, there is no way to reason about what this does. Anything can happen with this code. Once you have undefined behavior, you lose the ability to reason about your entire program. Thus, this program does not solve the problem. It demonstrates a lack of knowledge about undefined behavior in C++. Rating: Absolutely would never hire this candidate. |
|