Back to Browse

Code With Me: 2D Rectangular and Jagged Arrays in C

255 views
Mar 4, 2025
1:09:42

In this video, I walk through coding 2D rectangular and jagged arrays in C using CLion. We'll explore how to store and analyze passing yards per quarter for an entire American football season. Starting with a rectangular array (one row per game, four quarters per game), we'll build functions using test-driven development to calculate total passing yards per game and average passing yards per quarter. Next, we expand to a jagged array to handle scenarios like overtime or games ending early due to weather. Through this, we’ll compare rectangular vs jagged array implementations and explore the differences in iterating across rows vs columns. Along the way, we dive into debugging techniques, test-first coding practices, and learn how to make our code more maintainable. By the end, you'll gain hands-on experience with both rectangular and jagged arrays, while sharpening your C programming and debugging skills. Keywords: test-driven development, rectangular arrays, jagged arrays, and C programming TIMESTAMPS 0:00 Introduction 0:17 Rectangular Arrays 29:45 Jagged Arrays ABOUT MY CHANNEL My channel is about good software engineering practices. We cover introductions to programming in C and Java. But I also have lots of software and computer engineering topics like PIC programming, advanced programming techniques, and things that distinguish good code from code that works. Check out my channel here: https://www.youtube.com/@wizardcraftcode Don’t forget to subscribe! CHECK OUT MY OTHER VIDEOS: C Programming Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9Ag0CZdGTUm3FWhBDX28B0Dj Intro to Java Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9Ajo6LH_-g7dXjZemaQ5QXnV Software Engineering Topics Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9AgMHq42vUXHkXEws3JWdnDb

Download

0 formats

No download links available.

Code With Me: 2D Rectangular and Jagged Arrays in C | NatokHD