How to Remove the Last Character from a String in C ?

To remove the last character from a string in C, you can simply set the second-to-last character … Read more

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

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

Writing and understanding first C program

First C Program – “Hello World”

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

Stat for file information

C program to read file properties using stat() function

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

Stat for file information

C program to find file properties using stat() function

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

#ifndef in C

How to use #Ifndef directive in C program ?

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

C pre-processor error

Fixed : error: #elif with no expression

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

How to implement linked list in C programming ?

This programs shows a simple way to implement singly link list ( Singly link list is the … Read more

Functions in C

Function in C programming is a group of statements which are separated from main task for the … Read more

How executable is created during compilation on Linux ?

This code is tested on Ubuntu . You may need to twick the script if you use a … Read more