Dr. A.P.J. Abdul Kalam University, Indore
Class: M.Sc. Mathematics
Semester: I
Subject: Mathematics –V
Title of Paper: Programming in C-I (Optional Paper)
Unit I:
An overview of programming languages, Programming Basics: Basic Structure of C
program(First C program), Identifiers, Keywords, Constants, Variables and Arithmetic
expression, Variable names, data Types and Sizes, constants, Scalar Data Types-declarations,
different types of integrals, Different kinds of Integer Constants, Character Constants, Floating
point type Constant, Initialization.
Unit II:
Operators and Expressions- precedence associatively and order of evaluation, unary plus and
minus operators, Arithmetic operators, increment and decrement operators, comma Operators,
relations operators, logical operators, bit-manipulation operators, Bitwise assignment operators
and expressions, Conditional expressions, cast operators, size of operators, conditional operators,
memory operator, Input and Output functions( formatted and unformatted)
Unit III:
Control Flow-Statements and blocks, conditional Branching if, if –else, nested if else, looping:
do while, while and for loop, nested loops.
Unit IV
The break and continue statement, the Goto statement and Labels, exit statement, switch
statement, infinite loop.
Unit V
Type Conversions, Mixing types explicit conversions-casts, enumeration types, void data type,
Typedefs, preprocessor directives, formatting source files, continuation Character, integer and
float conversions , type conversion in assignment.
Books recommended :
1. Brain W Kernigham & Dennis M Ritchie the C programmed Language 2
nd
Edition (ANSI
features), Prentice Hall 1989
References :
1.Samuel P. Harkison and Gly L Steele Jr. C: A Reference manual, 2
nd
Edition Prentice Hall
1984.