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

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