Size of an Empty Struct?

Probably one of the basic questions… And answer is present in all the basic books. But a recent discussions motivated me to investigate a bit.

Continue reading “Size of an Empty Struct?”

Design Patterns in C++

While having a discussion on Design Patterns there are group of implementers who advocate implementing design patterns using the so called best features of the Programming language. While I too agree, that implementation of patterns should certainly use features of underlying language it could be challenging to decide what defines the best? It seem to be specially true when it comes to programming with C++.

Here is my analysis on the subject based on one my recent discussion with a C++ implementer and his arguments.

Continue reading “Design Patterns in C++”

Pointers – Vows and Concerns

One great feature managed environments such as java and .net claim is the role and use of garbage collector. In this article we will be looking and the main pointer vows of C/C++ which acted as motivation for evolution of managed environment and garbage collection. In this section we will talk about

  • Wild Pointer
  • Dangling Pointer
  • Memory Leak

Continue reading “Pointers – Vows and Concerns”

C – A Brief History

C is quirky, flawed and an enormously success – Dennis Ritchie

The story of the success of C is often told and retold. C is deemed as the mother of all modern programming languages since almost all surviving modern programming language finds it origin or resemblance with this language. However there are two points that must be interesting to note about this very high profile mother of modern programming languages –First, the story of C begins, interestingly, with a failure.

Continue reading “C – A Brief History”