Archive for the C Category

I honestly can’t recall the number of times I’ve been asked what the difference was between arrays and linked lists. There’s been countless times when people have come up to me and asked “When should I use arrays and when should I use linked lists?” Since I’m getting tired of answering this so many times I felt I should write down my answer here :P
(more…)

Anyone who has worked on a program that was larger than “Hello World” has at one point or another ran into a bug in their code. You can plan out your code, meticulously write it out, read over it again and again and in the end when you run it, you’ll inevitably find something that is wrong with it. The problem may be a syntax error, maybe you spelled a variable wrong or called a function with the incorrect parameters, or it could be a semantics error; you compared a variable to 1 instead of 0. Whatever the problem is you’re bound to run into them from time to time. If you read on I’ll tell you five tips to improve your debugging techniques.
(more…)

The C programming language was first developed between 1969 and 1973 by a team from Bell Telephone Laboratories. Many of the principles and ideas used in this language were taken from the programming language named ‘B’ (created by Ken Thompson) as well as its ancestors BCPL and CPL (Combined Programming Language and Basic Combined Programming Language respectively). Dennis Ritchie was the main person responsible for converting the C language from B but there were many others that helped such as: Ken Thompson, Alan Snyder, Steven C. Johnson, and Michael Lesk.
(more…)