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

Send and Receive (Transfer) integer over socket using C program

Following the simple example which shows how we can send and receive an integer over a socket. … Read more

Read the contents of a file into character buffer using C program

Lets say we want to read the contents of some file and want to operate on these … Read more

Using Decision Making Statements, if and if-else in C program

When you are writing C program, sometimes you need to make certain checks on variables and based … Read more

Cross compiling C/C++ programs for Android using NDK Toolchains

If you are using NDK version more than r19, the toolchains which comes as part of NDK … Read more

What is Clang ? How to compile C program using clang ?

What is Clang ? Clang is a compiler front end for the C, C++, Objective-C and Objective-C++ … Read more

Example for using shared data between two Unix threads

Following is the simple example to show, how we can create two threads at a time and … Read more