Implement Stacks in C – Example

In the previous post, we implemented linked list in C. In the same way, now we are going to implement stacks in c programming language by an example. We will be using a self-referential structure which stores an integer. Let’s see the example first, It is a bit easier to implement than that of stack … Read more

Implement Linked List in C

Before starting to implement linked list in C, let’s see what self-referential structures are. Also, you need to know about dynamic memory allocation, which you can find here in this link. For example, let’s define a structure like below: In the above struct node, we have two members, viz. integer member data and pointer member … Read more

Dynamic Memory Allocation in C

Introduction In this post, we will learn about the dynamic allocation of memory in C. Also, we should be able to understand the pointers because we will be dealing with memory. To learn about pointers, please visit this link here. Dynamic Memory Allocation in C It requires dynamic memory allocation to create and maintain dynamic … Read more

Pointers in C – String Implementation

In the previous blog post, I wrote about the relationship between pointer and array. I suggest you reading that post before starting here because this is an extension of that post. In this post, I would like to show you the implementation of string using pointers in C programming language. An Example In C programming … Read more

Pointers in C – Array Implementation

In the previous article, we looked briefly on what pointers are. Furthermore, we learnt a simple implementation of pointers. In this post, I would like to go a bit further and explain you about relationship of pointers with arrays. So, let’s move into pointers in C and its array implementation. First of all, we have … Read more

Pointer in C and its implementation

As we all know, C is the first language that many programmers learn during their career in programming. One of the reasons why C programming is different from many other high level programming languages is that, it give the access to memory to the programmer through pointers. For this reason, one should have a better … Read more