O
3
P
, Features of CC
C is a
general purpose structured programming language.
Combilers are
Commonly available for aill
tybes
Combuter, havinq di ffereot Platfbrms, diferent
and diPferent
micro - Processor
operating systemS
Jeneral rules or writng C
programs
Cis
aree style language. s0 program Stakements Can Start
at
any Column, blank Lines and spaces be
may tnserted as
appropr2ate in a
program
C statement s terminated by a Semicolon Ci). 6o
Statement
a
single
Can extended to moany une or
multble statements
Separated by Semicolon Ci) Can be written in a Single ine
C is Case sehSitive. So
the word E LSE , ELse and else are
treated differently
v) ALl C
keywords have to be used in lowercase only.
Each block instaucton is embedded n Curly braces {'6'},
whtch are equivalent to begin and stop.
vi) We can write the Source Code
oC program in notepad also bu
we have to Save the
file with exten ston name .c.
Example - t include < Stdio h>
man )
intt (" Hello,
everybody ! This is my st,)5
Program )
, # include <stdio h>
nis LS a
preprocessor Command. This statements tetlS t n e
Pro cessor to include the
information Contatns in the LE
Stdio h> standard inbut outbut header file before it is passed
for Comptlation, the file contain a routin to Per form the basic
nput and output.
Comment
Any set of character betuween and " */** is Known as
a
Comm ent Statement.Key are tgnotedl. by Compler and have
no effect on the site or
speed of the inal Program.
A Comment Can be placed anywhere accept in site a
Variable name, a constant or
Keywords
Comment are helbful in identifying the program's
Princb4le leatures or 2n ezplaining the underlining logic of
var2ouS program features.
e
*Mohan kumar
Braces
Theopenimg braces after main () indicates the
beginning of
he block of stotement and closing braces indicates endinq
t h e statement.
Semi colon
Each exprescion Statements must end with a semi colon.