C program to find file properties using stat() function

Stat Linux

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

Functions in C

Function in C programming is a group of statements which are separated from main task for the … 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

Associativity of Operators in C Programming

When some expression in C contains two operators with same/equal priority, the expression gets executed as per … Read more

feof() end-of-file indicator function in C – Example

The function feof() tests the end-of-file indicator for the stream pointed to by stream, returning nonzero if … Read more

C program in Linux to find the current working directory (PWD)

getcwd, getwd, get_current_dir_name functions return a null-terminated string containing an absolute pathname that is the current working … Read more

C program to convert integer number to string

Following program converts integer number 42 to string “42” using sprintf. sprintf() writes to the character string. … Read more

How to write Comments in C Program ?

In C program, comments doesn’t have any use other than for better understanding of the developers of … Read more

C program to know storage size of int, char and float

To get the exact size of a type or a variable on a particular platform, you can … Read more