Preprocessor Directives & Macro in C

Preprocessor Directives Introduction The C pre-processor is not the 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 C program in several respects. Definition The pre-processor is a translation phase that is 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

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