Passing Arrays as Parameter in C

Arrays are the most misunderstood language construction of C, even more than pointers. Everybody knows that these mysterious pointers are somehow dangerous, thus people (beginners) tend to either avoid, or really try to understand them. But arrays are something that every beginner quickly understands (in any language). But in C, arrays are actually hidden pointers […]

Read More

On struct Versus enum in C Programming

I recently had someone new to C programming ask me on IRC when you should use an enum rather than a struct. Baffled by the nature of the question, I politely suggested more reading before posing the question again. After all, structs are so different from enums, right? My request was met with resistance, likely […]

Read More