CS50x 2025 - Lecture 4 - Memory

CS50x 2025 - Lecture 4 - Memory

*** Pointers. Segmentation Faults. Dynamic Memory Allocation. Stack. Heap. Buffer Overflow. File I/O. Images. *** This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming. *** TABLE OF CONTENTS 00:00:00 - Introduction 00:01:15 - Pixel Art 00:06:54 - Hexadecimal 00:15:52 - Memory 00:18:44 - Pointers 00:35:16 - Strings 00:52:00 - Pointer Arithmetic 00:57:50 - Erratum 00:58:22 - String Comparison 01:08:43 - Copying and malloc 01:24:45 - Valgrind 01:31:29 - Garbage Values 01:35:48 - Pointer Fun with Blinky 01:38:43 - Swapping 01:56:30 - Overflow 02:01:24 - scanf 02:11:10 - File I/O *** HOW TO SUBSCRIBE http://www.youtube.com/subscription_c... HOW TO TAKE CS50 edX: https://cs50.edx.org/ Harvard Extension School: https://cs50.harvard.edu/extension Harvard Summer School: https://cs50.harvard.edu/summer OpenCourseWare: https://cs50.harvard.edu/x HOW TO JOIN CS50 COMMUNITIES Discord:   / discord   Ed: https://cs50.edx.org/ed Facebook Group:   / cs50   Faceboook Page:   / cs50   GitHub: https://github.com/cs50 Gitter: https://gitter.im/cs50/x Instagram:   / cs50   LinkedIn Group:   / 7437240   LinkedIn Page:   / cs50   Medium:   / cs50   Quora: https://www.quora.com/topic/CS50 Reddit:   / cs50   Slack: https://cs50.edx.org/slack Snapchat:   / cs50   SoundCloud:   / cs50   Stack Exchange: https://cs50.stackexchange.com/ Telegram: https://t.me/cs50x Threads: https://www.threads.net/@cs50 TikTok:   / cs50   Twitter:   / cs50   Twitter Community:   / 1722308663522594923   YouTube:    / cs50   HOW TO FOLLOW DAVID J. MALAN Facebook:   / dmalan   GitHub: https://github.com/dmalan Instagram:   / davidjmalan   LinkedIn:   / malan   Quora: https://www.quora.com/profile/David-J... Threads: https://www.threads.net/@davidjmalan TikTok:   / davidjmalan   Twitter:   / davidjmalan   *** CS50 SHOP https://cs50.harvardshop.com/ *** LICENSE CC BY-NC-SA 4.0 Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License https://creativecommons.org/licenses/... David J. Malan https://cs.harvard.edu/malan [email protected]