When you’ve been coding for about a week or two, you’ll eventually start to realize that you need a data structure called arrays.
What are arrays?
Arrays are just a collection of data. Let’s say you have a collection of numbers in your program, and those numbers represent different test scores on an exam in your class. Then, you may use an array to perform the computation.
If you want to store some text in your program—maybe it’s someone’s name, a word, a phrase, or even a sentence—you’ll need to use a char array to store that in your program.
Imagine you’re trying to build a to-do list application, which is a typical project for people who are just starting to learn how to code. If you have tasks in your to-do list, you may use an array to represent those different tasks.
In this video, I’ll be giving an introduction to arrays in C. I’ll do that by going over two simple programming examples, which are classic and will help you understand arrays and know how to use them in your programs.
Knowing how to work with arrays in C is crucial because it unlocks a lot of potential in your programs and applications. With this knowledge, you’ll be able to build not only complex programs but programs that add value to the world.
In this video, you’ll learn:
✅ How arrays work in C (1 and 2 dimensional arrays)
✅ How to use them to store text into your program
✅ How to build more complex programs with them
Thank you for watching, and happy coding! 💻🧡
-Henrik