C
File Handling in C
Definition of File Handling in C File handling in C is the process of creating, opening, reading, writing, appending, updating, and closing files using a C program. A file represents a sequence of bytes on the disk where a group of related data is stored, ending with an end-of-file marker. Read more…
![]()
C
Preprocessor Directives Examples in C
Macro Examples Example : A Preprocessor Directives with Macro Examples for Defining Constants in C to display the message/value. Example : A Preprocessor Directives with Macro Examples for Defining a Function like a Macro in C to find the square value of a given number. Example : A Preprocessor Directives Read more…
![]()
C
Preprocessor Directives in C
Difference between Preprocessor Directives and Macro Preprocessor Directives Introduction The C pre-processor is not part of the compiler but is a separate step in the compilation process. The syntax of the pre-processor is different from the syntax of the rest of the C program in several respects. Definition Preprocessor directives Read more…
![]()
C
Operators in C
Introduction of Operators in C Operators in C are the term used to describe the action to be taken between two data operands. Operators in C allow us to perform different kinds of operations on operands. An operand is a sub-expression/value on which an operator acts. Definition Operators in C An Operator Read more…
![]()
C
String Function Examples in C
Example : Find the length of given string in C using string function [strlen()]. Example : Find the length of given string in C using string function [sprintf()]. Example : How to copy one string contents into another empty string in C using string function [strcpy()]. Example : How to Read more…
![]()
C
Union Examples in C
Example : A Union Program Examples in C to store values in a union and display them. Example : A Union Program Examples in C to find out the size of the union and display them.
![]()
C
Recursive Function Examples in C
Example : A Recursive Function Examples in C to sum the natural numbers the keyboard reads through users. Example : A Recursive Function Examples in C to find out the factorial result of the given number. Example : A Recursive Function Examples in C to find out the GCD/HCF result Read more…
![]()