Monthly Archives: January 2016

Dangling Pointers

Dangling pointers are those in the C programming language that do not point to valid objects. Pointers are like sharp knives that have tremendous power in C programming. When used properly, they reduce the complexity of the programs to a great extent. But when … Continue reading

Posted in Dangling pointers | Leave a comment

Volatile Demystified

Volatile is a qualifier in C, which is applied to a variable when it is declared. It is used extensively while writing programs for embedded systems, especially when dealing with hardware. The aim of this article is to give you an idea of how … Continue reading

Posted in Volatile demystified | Leave a comment

Constant pointer and pointer constant

Pointers have always been a complex topic to understand for those new to C programming. There will be more confusion for newbies when these terms are used along with some qualifiers like const in C programming. In this article, I will focus on the … Continue reading

Posted in Const pointer and pointer const | Leave a comment

Bit-fields Structure

Embedded C programmers who have worked with structures should also be familiar with the use of bit fields structures. Use of bit fields is one of the key optimisation methods in embedded C programming, because these allow one to pack together several related entities, where … Continue reading

Posted in Bit-fields Structure | Leave a comment

Operators

In this topic we will study, how to get the address of the variable and also how to fetch the value present at that address by the application of the pointer operators. Example #1: Let us take definition of the … Continue reading

Posted in Operators | Leave a comment

Faceoff with sizeof()

In the C programming, the unary operator sizeof() returns the size of its operand in bytes.  The sizeof operator is thoroughly discussed in this article along with illustrative examples of code. Sizeof() is used extensively in the C programming language. … Continue reading

Posted in Faceoff with sizeof() | Leave a comment

Pointers-Sharp Knives

Introduction “A pointer in ‘C’ language is a special variable which contains the address of the other variable”. C is a very powerful language because of the pointers available in it, which is one of the unique feature supplied by the C … Continue reading

Posted in Introduction | Leave a comment