Archive for 'C/C++ Programming' Category

Polymorphism in C++

21 May 2010

The term polymorphism is central to most discussions in and around object oriented design and programming. However I find that many people are still confused or don’t have a complete understanding of the advantages and disadvantages of using polymorphism. I have heard many different simplified definitions of the root term for polymorphism, usually relating to [...]

Declarations and Definitions in C

18 January 2010

Please Note: This post is focusing on pre-C99. The reason being is that it is aimed at the embedded C programmer who tends to be working with pre-C99 based cross-compilers. Also I have split it into two as it became my larger, due to feedback, than first anticipated.On the surface declarations and definitions in C [...]

Unscrambling C Declarations

9 December 2009

Note: Based on some feedback I should clarify that this does not cover C99 syntax Even though the C programming language has been around since the late 1960’s, many programmers still have trouble understanding how C declarations are formed. This is not unsurprising due to the complexity that can arise when mixing pointer, array and [...]