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…

 9,325 total views,  19 views today

Operators in C

Introduction An expression is a sequence of operators and operands that does some specific manipulation.It is a combination of variables, constants and operators written according to the syntax of C language.In C every expression evaluates to a value.There are three kinds of expressions: An arithmetic expression evaluates to a single arithmetic value. A character expression evaluates to a single value of type character. Read more…

 14,997 total views,  19 views today

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…

 9,343 total views,  1 views today

Recursive Function Program Example

Example : A C program to sum of natural numbers read by the keyboard using recursion. Example : A C program to find out the factorial result of the given number using recursion. Example : A C program to find out the GCD/HCF result of the given two number using Read more…

 534 total views,  1 views today

File Handling Examples in C

Example : Write a program (WAP) in C to create new blank file with a name in C. Example : WAP in C to check whether a file is present/created or not. Example : WAP in C to store certain string messages into a file. Example : WAP in C Read more…

 1,045 total views,  2 views today

C Structure Program Examples

Example : A C program to determine the memory occupied by structure & union.  Example : A C program to store static data in a structure & display them.  Example : A C program to declare pointer variable in a structure to accept data & display them.  Example : A Read more…

 1,083 total views