YoVDO

Undefined Behavior in C++ - What Is It, and Why Do You Care?

Offered By: CppNow via YouTube

Tags

C++Now Courses C++ Courses Integer Overflow Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the concept of undefined behavior in C++ through this comprehensive conference talk from CppNow 2014. Delve into what undefined behavior is, why it matters, and its implications for C++ programmers. Learn about various examples of undefined behavior, including array access violations, signed integer overflow, and uninitialized variables. Examine compiler optimizations, performance considerations, and language semantics related to undefined behavior. Discover the history behind undefined behavior in C++ and its impact on modern programming practices. Gain insights into detecting and avoiding undefined behavior to write more robust and reliable C++ code.

Syllabus

Intro
Boost Lists
What is undefined behavior
Examples of what could happen
Array example
Signed integer overflow
Example program crashes
Compiler optimizations
Can you order pointers
Is this a new thing
Copy with overlapping buffers
Modulo bugs
Ignoring integer overflow
Uninitialized variables
Warnings as errors
Uninitialized variable
Uninitialized
Why do we do this
Performance and code size
Language semantics
Types of undefined behavior
Is undefined behavior legal
History of undefined behavior
Search theory
Printing


Taught by

CppNow

Related Courses

Computer Graphics
University of California, San Diego via edX
Intro to Parallel Programming
Nvidia via Udacity
Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera
C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera
Introduction à la programmation orientée objet (en C++)
École Polytechnique Fédérale de Lausanne via Coursera