MMC101

PROGRAMMING IN C

OBJECTIVE: To teach the basics of computers, problem analysis and programming skills in C.

1 .PROGRAMMING PRINCIPLES [10]
Introduction to Computers, HIW and S/W components — Block diagram— Applications of Computer Algorithms — Flowcharts — Structured programming - Modular programming.

2. SYNTAX [10]
Character Set — Constants and Variables — Data types and sizes — Declarations — Arithmetic Operators — Relational & Logical operators — Type conversions — Increment & Decrement operators — Bit-wise operators — Assignment operators and Expressions — Conditional Expressions — Precedence and Order of evaluation- Statements and Blocks — Input — Output operations — Simple Programs.

3. CONTROL STRUCTURES AND SCOPE RULES [10]
Go to Statement — If, If-else, If-else-if & Switch statements While, Do-while, For loops — Arrays — l-D & 2-D, Multidimensional arrays - Functions — Functions returning single value

4. POINTER CONCEPTS [10]
Storage classes — Scope rules - Pointers — Address Arithmetic — Pointers and Arrays — Functions returning multiple values — String handling.

5. ADVANCED FEATURES AND FILE HANDLING [10]
Structures and Unions — Arrays of structures — Pointers to structures — Self- referential structures — Typedef — Unions — Bit-Fields — Memory allocation — File Handling — Command Line arguments Preprocessor directives.

REFERENCES
1. Darnell & Margolis “ANSI C —A Systematic programming Approach”, Narosa
2. B.W. Kerninghan, D.M.Ritchie,” The C Programming Language”, 2” Edition, l995, PHI.
3. Mike Banahon, Declan Brady and Mark Doran, “The C Book”, 2”” Edition, 1991, Addison Wesley.
4. Yashwant Kanetkar,” Let us C”, 1st edition 1991, BPB Pub.
5. Yashwant Kanetkar,” Pointers in C”, 1st edition 1991, BPB Pub.