How to call Assembly function from C code ?

In this post, we use ARM are reference architecture for writing the assembly code but the basic … Read more

How to implement stack in C programming ?

In continuation of demonstrating simple implementation of data structures, as we shown in our last post “How … Read more

C program to calculate length of a String

strlen – calculate the length of a string If you are implementing some C program dealing with … Read more

C program for creating a text file from string in buffer

Create a str_to_file.c file as contents below, OR use from github Compile above source as, Test / … Read more

Using electric fence for debugging memory leaks in Linux

Electric Fence helps you detect two common programming bugs: software that overruns the boundaries of a malloc() memory … Read more

C program to print Hex values of characters in string

Following program prints the hexadecimal values of all the characters in any string. Currently we have used … Read more

How to use Valgrind to find memory leaks ?

Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically … Read more

Associativity of Operators in C Programming

When some expression in C contains two operators with same/equal priority, the expression gets executed as per … Read more