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

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