PROGRAMMING IN ‘C’

Paper Code: 
CAI 201
Credits: 
3
Periods/week: 
45
Max. Marks: 
100.00
Objective: 

This module is designed to acquaint the students with the basics of ‘C’ programming language.

 

Course Outcomes (COs):

 

Course Outcomes

(At Course Level)

Learning And Teaching Strategies

Assessment Strategies

The Students will:

CO16. Constract and implement algorithms/pseudo codes and logic building.
CO17. Design C programs for different problems based on different structured programming concepts.
CO18. Apply the concept of branching and looping in different programs.
CO19. Implement various operations using arrays.

CO20. Apply various string manipulation operations using C programming.

Learning and Teaching Strategies-

Approach in teaching: Interactive Lectures, Discussions, student centered approach, Through video Tutorials 

Learning activities:

Presentations, Quizzes and Assignments

 

Assessment Strategies-

 

Class test, Semester end examinations, Quiz, Solving problems in tutorials,

Assignments, Presentation, Individual and group projects and peer review.

 

 

 

10.00
Unit I: 

Introduction to computers: Personal computing, Distributed Computing and Client/ Server Computing, Machine Languages, Assembly Languages and High-level Languages, The history of C, The C standard library, Structured Programming, the basics of a typical C program Development Environment.

Introduction to ‘C’ programming: Introduction, A Simple C program, Memory Concepts, Arithmetic in C, Decision making.        

Structured Program Development in C: Introduction, Algorithm, Pseudocode, Control structures, relational operator, the if selection structure, The if/else selection structure, goto statement.

8.00
Unit II: 

Operators and Expressions: Arithmetic, Logical, Assignment, Increment and Decrement, Evaluation, Precedence and Associativity of expressions.

Structured Program Development in C: The while repetition structure, Counter Controlled Repetition, Sentinel Controlled Repetition, Nested control structures.

C Program control: Introduction, Essentials of repetition, Counter controlled repetition, for repetition structure, for structure: notes and observations.

 

10.00
Unit III: 

C Program control: The switch multiple selection structure, the do/while repetition structure, the break and continue statements.

C Functions (Non-Recursive): Introduction, Program Modules in C, Math Library Functions, Functions, Functions Definitions, Function Prototypes, Header Files, Calling Functions: Call by Value and Call by reference, Storage Classes, Scope rules.

 

10.00
Unit IV: 

 C Arrays: Declaring Arrays, Passing Arrays to Functions, Sorting arrays (Bubble Sort), Searching (Linear, Binary Search), Multiple-Subscripted Arrays.

Structures and Union: Definition, declaration, initialization, array of structure, arrays within structures, structures within structures.

C Pointers: Introduction, Pointer variable declaration and initialization, Pointer operators.

7.00
Unit V: 

C characters and Strings: Introduction, Fundamentals of Strings and characters, Character and String Handling Library, String conversions and comparison functions.

C Formatted Input/Output: Streams, formatting output with printf, Printing: Integers, Floating point numbers, Strings, Characters. Field Widths and Precisions, Flags in print format control string, Escape sequences, formatted input with scanf.

 

ESSENTIAL READINGS: 

 

  1. P.K. Sinha, Preeti Sinha, “Foundations of Computing”, BPB Publications, 2003.
  2. Raj K. Jain, “Insight into Flowcharting”, S.Chand Publications, 2000.
  3. E. Balagurusami, “Programming in ‘ANSI C’”, TMH Publications.
  4. Yashwant Kanetkar, “Working with C”, BPB Publications.

 

REFERENCES: 

SUGGESTED READINGS: 

  1. H.M.Deitel & P.J.Deitel, “How to program in ‘C’”, 5rd Edition, Pearson Education, 2005.
  2. S. Lipschutz, “C Programming”, Schaum’s outline series, Tata McGraw Hill Edition.
  3. Vikas Thada “C Programming Simplified” ashirwad publication.

E-RESOURCES:

  1. https://www.programiz.com/c-programming
  2. https://www.learn-c.org/
  3. http://ee.hawaii.edu/~tep/EE160/Book/PDF/Book.html
  4. https://spoken-tutorial.org/tutorial-search/?search_foss=C+and+Cpp&search_language=English

 

Academic Year: