Professional Documents
Culture Documents
10 Unit 1 - Basics of C
10 Unit 1 - Basics of C
C. V. POLYTECHNIC
JHARGRAM
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY
2ND YEAR – 3RD SEMESTER
E‐CONTENTS : PROGRAMMING IN C
BASICS OF C
UNIT : 1
Developed By :
Biswajit Roy, Lecturer
Computer Applications (Post Diploma)
I. C. V. Polytechnic, Jhargram
1.1 History of C, Advantages of Structured
Program, Files (source, header, object, binary
executable) used in C, Characteristics of C.
1.2 C character set, Tokens, Constants, Variables,
Keywords, Data types used in C.
1.3 C operators (arithmetic, logical, assignment,
relational, unary, binary, increment and
decrement, conditional, bit wise, special,
comma, sizeof, postfix, prefix etc.), Operator
precedence, Associativity of operators, Type
conversion, Typecasting.
1.4 Formatted input, Formatted output.
27‐08‐2020 I. C. V. Polytechnic – Programming in C 2
C programming language was developed in
1972 by Dennis Ritchie at Bell Laboratories of
AT&T (American Telephone & Telegraph), U.S.A.
‐ + += > ! ~ , ?:
++a
a++
‐ ‐= < && << *
‐‐a
a‐‐
* *= >= || >> &
sizeof / /= <= & .
% %= == | ‐>
!= ^
27‐08‐2020 I. C. V. Polytechnic – Programming in C 13
27‐08‐2020 I. C. V. Polytechnic – Programming in C 14
Operators Precedence and Associativity are two
characteristics of operators that determine the
evaluation order of sub‐expressions in absence of
brackets
27‐08‐2020 I. C. V. Polytechnic – Programming in C 15
double
float
int
Char