MCA03

Computer Programming using C
Year / Semester: 
1st Semester
Objective: 

C language is suitable for many applications as it has an excellent support of high-level and low-level functionality. Although several new high level languages have already been developed, C language has not lost its importance and popularity.With this course the learners will be able to write codes in C languages. They will be able to develop programs using various features of the language.

Credits: 
4

Unit 1: Introduction to Programming

Basic Definition of Pseudo Code, Algorithm, Flowchart, Program, Elementary Data Types: Integer, Character, Floating Point and String Variables; Constants and Identifiers; Variable Declarations, Syntax and Semantics, Reserved Word, Initialization of Variable during Declarations, Symbolic Constants.

Unit 2: Operators and Expressions

Expression in C; Different Types of Operators: Arithmetic, Relational and Logical, Assignment, Conditional, Increment and Decrement, Bitwise, Comma and Sizeof; Precedence and Associatively of Operators; Type Casting.

Unit 3: Decision and Control Structures

Various Input /Output Functions: scanf, getch, getchar, printf, putchar; Conditional Statement- if, if- else, nested if-else switch; Other Statement: Break, Continue, Goto; Concept of Loops: While, Do-While, For, Nested Loop.

Unit 4: Storage Class

Automatic, External, Static, Register, Scope and Lifetime of Variables, Macro, Preprocessor Directive.

Unit 5: Functions

Function: Function Declaration, Function Definition, Function Call, Function Parameters, Formal and Actual Parameter, Parameter Passing Methods, Recursive Function.

Unit 6: Arrays and Pointers

Arrays, 1-Dimensional Array, 2-Dimensional Array and its Declaration; String; Pointers: Declaration, Passing Pointer to a Function, Pointer and 1-Dimensional Arrays, Dynamic Memory Allocation.

Unit 7: Structures and Union

Structure Declarations, Definitions, Array of Structures, Pointers to Structures; Union: Definition, Declaration, Use; Enumerated Data Types; Defining Your Own Types (typedef)

Unit 8: File Handling

Opening, closing, reading and writing of files. Seeking forward and backward. Examples of file handling programs.

Suggested Readings: 
  1. Balagurusamy, E: Programming in ANSI C, Tata McGraw-Hill publication
  2. Gottfried Byron S: Programming with C, Tata McGraw-Hill publication