<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Learn C With Me #05 — Arrays | Live</title>
        <link>https://watch.linuxrenaissance.com/videos/watch/e447e810-df85-40be-9ed9-ad1a3a4a20c8</link>
        <description>In Lesson 5 of Learn C With Me, we dive into arrays in C. Using Beej's Guide to C as our study material, we start with simple one-dimensional arrays and gradually work our way toward multidimensional arrays, while experimenting with the code ourselves along the way. We cover: What arrays are and how to declare them, Accessing array elements using indexes, Why array indexes start at zero, Iterating through arrays with for loops, Getting the size of an array with sizeof, Calculating the number of elements in an array, Why the sizeof trick stops working when an array is passed to a function, The relationship between arrays and pointers, Array initializers, Partially initializing arrays, Automatically initializing remaining elements to zero, Initializing specific array indexes, Letting C determine the size of an array from its initializer, Accessing arrays out of bounds, Undefined behavior and why the compiler might not warn you about it, Experimenting with GCC and Clang warnings, Multidimensional arrays, Row-major storage, Understanding arrays with more than two dimensions, Nested for loops for working with multidimensional arrays, Initializing multidimensional arrays, One of the most interesting parts of this lesson is seeing what happens when we deliberately read beyond the end of an array. The program compiles perfectly fine — but the results demonstrate one of the most important concepts to understand when programming in C: undefined behavior. We also discover an important connection to our previous lesson on pointers: when an array is passed to a function, what the function actually receives is effectively a pointer to the first element. This explains why determining an array's length with sizeof doesn't work inside the called function. As usual, this isn't a polished programming tutorial. We're learning C together, experimenting with the code, asking questions, making mistakes, reading the compiler output, and trying to understand why C behaves the way it does rather than simply memorizing syntax. We stop just before Arrays and Pointers, which we'll tackle in the next lesson. This is an interactive, follow-along live course. I am learning C alongside you, so expect questions, mistakes, experiments and plenty of discussion. No passive watching here — participate in the chat and work through the examples with us. 📅 We go live every Saturday at 19:00 CEST — interactive, follow-along C programming sessions. 📖 Study material: Beej's Guide to C 📚 Course materials: Linux Renaissance C Programming Course 💬 Homework &amp; discussion: Linux Renaissance Forum 📺 All C Programming lessons: C Programming playlist 🔴 This stream is proudly sponsored by OPNsense — the open source firewall and routing platform trusted by professionals worldwide. OPNsense Support Linux Renaissance🛒 Shop: Linux Renaissance Shop ☕ Ko-fi: Ko-fi 🎖️ Patreon: Patreon ▶️ YouTube membership: YouTube Membership Find me elsewhere🌐 Blog: Linux Renaissance 🎥 PeerTube: Linux Renaissance on PeerTube 📺 Odysee: Linux Renaissance on Odysee 🎮 Twitch: Linux Renaissance on Twitch 💬 Matrix: Linux Renaissance Matrix space</description>
        <lastBuildDate>Wed, 09 Sep 2026 08:23:13 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>PeerTube - https://watch.linuxrenaissance.com</generator>
        <image>
            <title>Learn C With Me #05 — Arrays | Live</title>
            <url>https://watch.linuxrenaissance.com/lazy-static/avatars/9c56e2c1-4172-455c-9801-e3a8bad36429.gif</url>
            <link>https://watch.linuxrenaissance.com/videos/watch/e447e810-df85-40be-9ed9-ad1a3a4a20c8</link>
        </image>
        <copyright>All rights reserved, unless otherwise specified in the terms specified at https://watch.linuxrenaissance.com/about and potential licenses granted by each content's rightholder.</copyright>
        <atom:link href="https://watch.linuxrenaissance.com/feeds/video-comments.xml?videoId=e447e810-df85-40be-9ed9-ad1a3a4a20c8" rel="self" type="application/rss+xml"/>
    </channel>
</rss>