Sunteți pe pagina 1din 3

‘C’ Programming Language

‘C’ Programming Language

‘C is one of the most popular programming Sub program section


language, it was developed by Dennis {
Ritchie at AT (T’s Bell Laboratories at USA Body of the sub program;
in 1972. It is an upgraded version of two }
earlier languages, called BCPL and B, which All the statements in the program ends with
were also developed at Bell laboratories. a semicolon except conditional and control
statements.
Features and Applications of ‘C’
Language: Programming Rules in ‘C’ Language:
1. ‘C’ is a general purpose, structural 1) All statements in ‘C’ program should be
programming language. written in lower case letters. Upper case
2. ‘C’ is powerful efficient, compact of letters are only used for symbolic constants.
flexible. ii) Blank spaces may be inserted between
3. ‘C’ is highly portable. the words. It is not used while declaring a
4. ‘O is a robust language whose rich set of variable, keyword, constant and function.
built in functions and operators can be used iii) The program statement can write
to write any complex program. anywhere b/w the two braces following the
5. ‘C’ has the ability to extend itself. declaration part.
6. ‘C’ is well suited for writing system iv) The user can also write one or more
software as application software. statements in one line separating them with
7. ‘C’ programe can be run on different a semicolor.
systems of the different computers with little
alteration.
8. ‘C’ is a middle level language, it supports C’s Character set:
both the low level language and high level i) Source character set
language features. ii) Execution character set

Structure of a C’ program:
Documentation section
Preprocessor section
Definition section
Global declaration section
main ( )
{
Declaration part;
Executable part; Identifiers:
}

Download Study Materials on www.examsdaily.in Follow us on FB for exam Updates: ExamsDaily


‘C’ Programming Language

Identifiers are names given to various union


program elements _ such as variables, Empty:
functions and arrays etc. void
Ex: STDNAME, SUB, TOT, MARKS, All C compilers support the five
𝑌 fundamental data types called int, char,
2𝑘 etc.
float, double and void.
Keyword:
There are certain reserved words called Variables:
keywords that have standard and predefined A variable is an identifier that is used to
meaning in C language, which cannot be represent some specified type of information
changed and they are the basic building within a designated portion of the program.
blocks for program statements. The ‘C’ A variable may take different values at
keywords are listed below: different times during the execution, i.e. it is
the named memory location.

Scope of variables:
Scope of a variable implies the availability
of variables within the program. Variables
have two types of scopes.
i) Local variables
Data type: ii) Global / External variables
C supports the following 4 classes of data
types. Constants:
1 Primary The item whose values cannot be changed
2. User defined during the execution of program are called
3. Derived constants.
4. Empty

Primary data type:


char
int
float
double

User defined:
type def

Derived: Delimeters:
arrays These are the symbols, which has some
pointer syntactic meaning and has got significance.
structures These will not specify any operation.

Download Study Materials on www.examsdaily.in Follow us on FB for exam Updates: ExamsDaily


‘C’ Programming Language

Example: causes the computer to perform some action.


Symbol Name Meaning All statements in ‘C’ language ends with
# Hash pre-processor semicolon except conditioned and control
directive structured.
, comma variable delimeters
to separate list of variables Types of statements are:
Assignment statement
Statements: Null statements
Statements can be defined as set of Block of statements
declaration, or sequence of action. Statement Expression statements

Join Us on FB :

For English – Examsdaily For Tamil – Examsdaily Tamil

Join US on Whatsapp

For English - Click Here For Tamil – Click Here

Download Study Materials on www.examsdaily.in Follow us on FB for exam Updates: ExamsDaily

S-ar putea să vă placă și