Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

*(char*)0 = 0; - What Does the C++ Programmer Intend With This Code? - Lecture

cpponsea via YouTube

Overview

Explore the intricacies of a seemingly simple C++ program in this 54-minute conference talk by JF Bastien at C++ on Sea 2023. Delve into the programmer's intent behind the code *(char*)0 = 0;, examining its implications from various perspectives. Analyze how different C++ language standards interpret this code, and investigate how compilers reconcile programmer intentions with standard specifications. Examine kernel-level interpretations and hardware responses to this code. Journey through the entire stack, discussing undefined behavior and the far-reaching consequences of this concise program. Gain insights into compiler design, language standards, and low-level system interactions in this comprehensive exploration of C++ programming intricacies.

Syllabus

*(char*)0 = 0; - What Does the C++ Programmer Intend With This Code? - JF Bastien - C++ on Sea 2023

Taught by

cpponsea

Reviews

Start your review of *(char*)0 = 0; - What Does the C++ Programmer Intend With This Code? - Lecture

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.