Beruflich Dokumente
Kultur Dokumente
C PR OG RA M
It is a procedure oriented program because it is a sequential representation
of protocol to solve a particular program.
A program contain three parts
1.documentetion
2.preprocessor
3.main func
1.Documentation
It is the objective of the program ignored by the compiler
Compiler can ignore this part by two methods.
a. Single line documentation (// )
b. multilane documentation (/* */)
2.Preprocessor part
it is presented by using the symbol # or it is otherwise called as
preprocessing directive.
Ex-#define size 20
#include<stdio.h>
it is a preprocessor directive which includes header file into the
programming which introduces prototype of the function calls. which will
helpful for the users to perform a certain task.
Ex-#include<process.h> used for exit( )
#Include <stdlib.h> used for dynamic allocation and deal
location
NO TE
When a func returns a value when inside the main program it returns to the
main func i.e. the controller of the called function. so when main func
returns value it goes to the _AS register of the operating system.
DATA STRUCTURE
It is defined as collecting of data through different manner like
mathematical or logical manner to solve a particular program.
1.Mathematical collection
it is that collection where user can collect data individually unless and
until the requirement is completed.
Logical collection
It is that collection where user have to collect of the reqirement and the
rest data can be collected logically or by a relation like
One-many
Many-one
One-one
Many-many
DATATYPES
These are the identifications or the specification or the characteristics or
the property of the particular element or variable.
Ex-int x, float y, char d, double r.
Data types has been classified into three types according to their function
as per the requirement.
i.e.
i) User defined data type
ii) Derived data type
iii) Built in data type
Data type are divided in to two parts according to their manipulations
i) Primitive
ii) Non-primitive