Free Academic Seminars And Projects Reports

Full Version: PROGRAM STUCTURE IN ‘C’
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
PROGRAM STUCTURE IN C

[attachment=16454]

Your tiny steps towards programming

WHY YOU SHOULD ADOPT C LANGUAGE:

General Purpose Language.
Structured Programming Language
Flexibility towards Systems Programming.
Flexibility towards Application Programming.
Availability of large number of operators.
Has small instruction set.
Availability of extensive library function enhancing basic function.
Availability for computer of all types.
Program highly portable onto multiple platforms.

PROGRAM STUCTURE IN C

It is modular programming called function.
Out of all function one should be main ().
Components of each function
Function Heading: Function Name.
1. List of Arguments.
2. List of Argument Declaration.
3. Compound statements.

SIMPLE REQUIREMENTS OF C PROGRAM:

Each compound statement should be enclosed in a pair of Braces {}.
Braces can contain one or more elementary statements and other compound statements.
Compound statements can be nested or individual.
Each expression statement must end with a semicolon (Wink.
Comments should be used and can be used anywhere in the program /* */

APPROACHES OF LANGUAGES:

*Procedural * logical * Artificial Intelligence * Object oriented.

CHARACTERISTICS OF A PROGRAM

Should posses Integrity.
Should posses clarity.
Should posses Simplicity.
Must contain absolute efficiency.
Should be specific to Modularity.
Should posses Generality
Algorithm

It is some structured text that explains.
*INPUT * OUTPUT * FINITENESS * DEFINITENESS * EFFICIENCY.

SECTIONS IN C

Documentation Section
Include Section
Define Section
Global Variable Section
Main Section
Variable Declaration Section
Sub-program Section