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

Assembly program to Add two numbers

In this post, we will show a simple program which adds two numbers from two registers and … 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

Creating a simple thread in Linux using pthread library api’s

In this post, we create a simple thread using pthread library API “pthread_create” and wait for this … Read more

feof() end-of-file indicator function in C – Example

The function feof() tests the end-of-file indicator for the stream pointed to by stream, returning nonzero if … Read more