How to generate random number between two numbers in Java ?

This post demos how you can get the random number between two numbers in a simple java … Read more

Working with Strings in Kotlin

The basic datatype of strings in Kotlin is mostly similar as that of used in java. Only … 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

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