How to execute C code from go – c to golang binding ?

// If a Go source file imports “C”, it is using cgo. The Go file will have … Read more

How to call Assembly function from C code ?

In this post, we use ARM are reference architecture for writing the assembly code but the basic … Read more

How to implement stack in C programming ?

In continuation of demonstrating simple implementation of data structures, as we shown in our last post “How … Read more

Byte Array To Integer And Integer to Byte Array Conversion using JAVA

If you are working in some network related data transfer like sending some commands over socket, then … Read more

How to check if Filepath is Normal File or Directory in JAVA ?

In our previous post, we seen how to identify if a file is present or Not using … Read more

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