Programming in C

Paper Code: 
MCA 121
Credits: 
4
Periods/week: 
4
Max. Marks: 
100.00
Objective: 

·      To acquaint the students with concepts of structured programming.

·      To familiarize the students with basic concepts of C Programming and developer tools.

To enable the students to implement programming concepts in C language.

14.00
Unit I: 
Problem Solving with C Programming

Language Elements, Algorithms and Flowcharts, History, Execution of C Program, Constants, Variables and Keywords, Data types, Expressions, constants, variables, Operators, Operator Precedence and associativity, data input and output, Formatted Console I/O Functions, Conversion Specifications, assignment statements, conditional statements, Looping Statements, Storage Classes

 

12.00
Unit II: 
Array and Modular Programming

Introduction to Function, Functions with Simple Output Parameters, Passing Values between Functions, Multiple Calls to a Function, Introduction to Pointers, Parameter Passing by Value v/s Parameter Passing by Reference, Recursion and stack

Arrays: Declaring and Referencing Arrays, Array Subscripts, Using for Loops for Sequential Access, Multidimensional Arrays, Passing arrays as arguments

 

14.00
Unit III: 
Structure and Pointers

Structures & Unions- definition, Processing structures – Passing structures to a function.

Pointers: Operations on Pointers – Pointers to Functions, Functions Returning Pointers, Arrays of pointers,  Pointers to structures and Array of structures

 

 

10.00
Unit IV: 
String handling

String Functions, Two dimensional Array of Characters, Character Operations, Pointers and Strings, Array of Pointers to Strings

 

10.00
Unit V: 
File Handling

Features of C Pre-processor, Macros, File Inclusion, Conditional Compilation, Header Files, Implementation Files, Macros, File Operations, File opening modes, Text files and Binary files, argc v/s argv, Operations on Bits, Typecasting, Bit Fields

 

 

ESSENTIAL READINGS: 

E.Balaguruswamy, “Programming in ANSI C”, Tata McGraw Hill, 6th edition, 2012.

  • Yashvant Kanetkar, “Let Us C”, BPB Publications, 13th edition, 2012.
  • S Prasad, YasK.R Venugopal, “Mastering C”, Tata McGraw Hill, 2006.
REFERENCES: 
  • Bayron Gottfried, “Schaum’s Outline of Programming with C”, 2nd edition, 1996.
  • Yashvant Kanetkar, “Exploring C”, BPB Publications, 2nd edition, 2006.

Kernighan and Ritchie, “The C Programming Language”, Prentice Hall, 1988.

Academic Year: