Memory Allocation

A Complete Guide to using Double Pointer in C: Pointer-to-Pointer

A Complete Guide to using Double Pointer in C: Pointer-to-Pointer

A pointer can be declared to point to another pointer which points to a variable. Here, the first pointer contains the address of the second…

LRU and FIFO L1 Cache Implementation using C

This is a C program to demonstrate cache mechanism by simulating a cache in C. The source code can run in any C Compiler with…

C++ Memory Management

Everyone knows that memory management is a difficult and dangerous chore in C++. This series of three articles will show you that the conventional wisdom…

Pointers in C++

The pointer is a variable which holds the memory address of another variable. If one variable contains the address of another variable, the first variable…

Working with Pointers in C

A pointer is a variable that represents the location of a data item, such as a variable or an array element. Pointers are used frequently…