Preprocessor Directives & Macro 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…

Loading

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…

Loading

String Function Program Examples

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…

Loading

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…

Loading

File Handling Examples in C

Example : Write a Program(WAP) in C to create a New Blank File with a File Name and confirm its formation/creation. Example : Write a Program(WAP) in C to create a New Blank File with a User-Defined File Name and confirm its formation/creation. Example : Write a Program(WAP) in C Read more…

Loading

C Structure Program Examples

Example : A C program to find out the memory occupied by a structure or union.  Example : A C program to store static/constant data in a structure & display them.  Example : A C program to store & copy static/constant data in another structure & display them.  Example : Read more…

Loading

Function Program Examples

    Example : A C program to display message using User Defined Function (UDF). Example : A C program to display the Local and Global variables . Example : A C program to pass an Array through a User Defined Function(UDF) . Example : A C program to pass Read more…

Loading