EC04 302 COMPUTER PROGRAMMING IN C
(Common for all B.Tech. programmes except CS, IT & PT)
2 hours lecture and 2 hours practical per week
Module I (12 Hours)
Programming and problem solving- Basic computer organization- Developing algorithms- Flow
charts- High level and low level languages- Compilers and interpreters- Steps involved in
computer programming- Writing, compiling and executing a program- Debugging a program-
Description of a programming language.
Module II ( 18 Hours)
Basics of C- Overview of C- Program structure- Lexical elements- Numerical constants-
Variables- Arithmetic operators- Arithmetic Expressions- Arithmetic conversion- Increment and
Decrement operators- Assignment expressions- Multiple assignments- Input and output- Format
specifiers- Fundamental data types- Bit level operators and applications- Relational operators-
Relational expressions- Logical operators- Logical expressions- Conditional operator- Precedence
and associativity of operators.
Module III (16 Hours)
Compound statements- Conditional statements- if statement- if else statement- nested statementswitch
statement- Loop control statements- While statement- do while statement- for statementcontinue
statement- break statement- goto statement- Functions- user defined functions- library
functions- Recursion- Global, local and static variables.
Module IV (20 Hours)
Arrays- single dimensional- multi dimensional- Arrays in functions- Stacks- Strings- String
processing- Bit-wise operators- Enumerated data types- Structures – Type def – Structures in
Arrays- Arrays in structures- Unions- Pointers- Pointers and Arrays- Pointers and functions-
Linear linked lists and list operations- Files- sequential files- unformatted files- text files.
Text books
Rajaraman V., Computer Programming in C, Prentice Hall of India
Reference Books:
1. Kernighan B. W., & Ritchie, D.M., The C Programming Language, Prentice Hall of India.
2. Balaguruswamy, Programming in ANSI C, Tata McGraw Hill
3. Venugopal K.R & Prasad S.R., Programming with C, Tata McGraw Hill
Internal work assessment
60 % - Test papers (minimum 2)
30 % - Assignments/Term project/any other mode decided by the teacher.
10 % - Other measures like Regularity and Participation in Class.
Total marks = 50
University examination pattern
Q I - 8 short type questions of 5 marks, 2 from each module
Q II - 2 questions A and B of 15marks from module I with choice to answer any one
Q III - 2 questions A and B of 15marks from module II with choice to answer any one
Q IV - 2 questions A and B of 15marks from module III with choice to answer any one
Q V - 2 questions A and B of 15marks from module IV with choice to answer any one