How to resolve “cc1: all warnings being treated as errors” ?

If you are compiling some C program or open source package using Makefile which is written by … Read more

How to Switch Between Multiple Java Versions On Ubuntu Linux ?

Switch Java Version

If you have installed multiple JDK on ubuntu and sometimes you might need to change the version … Read more

C Program to Execute Linux Commands

Following program shows how you can run some Linux commands from C program using C library API … Read more

First C Program – “Hello World”

Writing and understanding first C program

Let’s write a first C program which normally would be “helloworld” We begin with the text editor … Read more

How to iterate through List in Java ?

Lists are an ordered collection of elements in Java. Conceptually those are similar to Linked list in … Read more

C program to read file properties using stat() function

Stat for file information

Stat system call in Linux return information about a file, in the buffer pointed to by buf. … Read more

C program to find file properties using stat() function

Stat for file information

Stat() function in C is used to retrieve information about the file by accepting the filepath as … Read more

How to use #Ifndef directive in C program ?

#ifndef in C

#ifndef ( if not defined ) directive is used in C language for conditional execution of certain … Read more

Fixed : error: #elif with no expression

C pre-processor error

When we want to make a compile time decisions to enable some code and disable other, #ifdef … Read more