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

How to center views in LinearLayout and RelativeLayout ?

Recently while developing one of our application, we wanted to have center aligned buttons, while in one … 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

How to use Single Instance Class / Singleton class in Android / Java ?

The single instance classes are mostly used when you don’t know how to create a object of … 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