# 251: What Happens When Code Has Undefined Behavior?

> Episode of [Take Up Code](https://podistic.com/podcast/take-up-code.md) · Published September 2, 2019 · Duration 7:37

- **Listen on Podistic:** https://podistic.com/episode/1294--251-what-happens-when-code-has-undefined-behavior
- **Audio:** https://www.takeupcode.com/podcast-download/4435/251-what-happens-when-code-has-undefined-behavior.mp3 (audio/mpeg)

## About this episode

What happens when code has undefined behavior? There’s hundreds of ways code can have undefined behavior. What happens is completely up to the compiler. You should not depend on undefined behavior because compilers can completely change or delete sections of code. Since the behavior is undefined, then compilers can optimize code in ways you never […]
