Category Archives: C/C++

This category of articles or tutorials would contain content related to C/C++ programming languages

Hash Tables – using hash command and available implementations

Introduction to Hash Tables Hash table is a data structure to store key value pairs. As in, a table where each entry has a key and a corresponding value. In other words, it is like an array with indices having the flexibility to be of any type i.e. integer, float, char, string, etc. Henceforth, these […]

New To Programming? Say Hello To Memory Corruption

Every process in any operating system would use memory to store its code and data. Same is the case with processes in Linux. However, the onus is on the programmer to see if the memory is being properly used or not. This is essential, as memory issues lead to copious bugs and bizarre behaviours. As […]

How I used eog utility to pull off a small Linux exploit

Back in 2012, after my article on Linux ELF Virus was published in Linux Journal, I was curious to come up with a trigger point for this virus. I mean what would compel a Linux user to execute it for the very first time? I thought about it many times but could not come up […]

A Developer’s Experiences with Constructors And Destructors In C++

The most compelling feature of C++ programming language is it being object oriented. An object is a fundamental aspect of an object oriented language like C++. The objects come from classes which is a collection of related type of information. As in C, we have structures as a user defined data-type, which is a collection […]

The concept of recursion with C examples

It is said, that the biggest and toughest problem can be solved by breaking it down into smaller problems and then solving it. One of the technique based on similar lines is recursion. Recursion in simpler and theoretical terms is solving a problem by solving smaller problems of “same” form and using their results to […]

Anatomy of command line arguments in Linux

While designing a simple C program or a full fledged command line application, it is pretty usual to have a requirement for arguments to be passed while running the executable/application. These arguments are known as command line arguments. These parameters govern the behaviour of the program to some extent, as these are the inputs based […]

5 GCC compiler options worth sharing

If you have worked on Linux software development using C language, you would have definitely come across the gcc compiler. It is one of the most popular C compiler as of today. GCC contains a huge list of compiler options. For those who are new to gcc, they must have knowledge of some basic gcc compiler options. […]