I’ve updated the C tutorials

I’ve added arrays and structs to the Tutorials page, bringing it up to five so far. I’ve got 30 or so in total to add and I’ll be adding one or two each week.
Learn C Games Programming Blog
A blog about C, programming games and my ebook(s).
I’ve added arrays and structs to the Tutorials page, bringing it up to five so far. I’ve got 30 or so in total to add and I’ll be adding one or two each week.
This continues the series of C tutorials. In this one, I’m looking at arrays and how to declare them. An array is an essential part of C programming, but they are always fixed size. You can’t change the size at runtime or specify the size in a variable before declaring it unless you declare them using pointers which is a bit advanced for the fourth tutorial.
The picture is a metal grid but it illustrates what a two dimensional array [5][7] might look like. I looked but I couldn’t find any pictures of seven dimensional arrays!