0% found this document useful (0 votes)
2 views5 pages

Programming in C

The document outlines a comprehensive syllabus for a 'Programming in C' course designed for beginners to intermediate learners, spanning 10-12 weeks. It covers fundamental topics such as C syntax, control flow, functions, pointers, structures, and file handling, along with assessments and recommended textbooks. Additionally, it includes a brief overview of a separate syllabus from IIT Madras, which focuses on computing fundamentals and modular programming in C.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

Programming in C

The document outlines a comprehensive syllabus for a 'Programming in C' course designed for beginners to intermediate learners, spanning 10-12 weeks. It covers fundamental topics such as C syntax, control flow, functions, pointers, structures, and file handling, along with assessments and recommended textbooks. Additionally, it includes a brief overview of a separate syllabus from IIT Madras, which focuses on computing fundamentals and modular programming in C.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Programming in C

Chat GPT:
Here's a suggested syllabus for a course on "Programming in C." It includes the key topics typically
covered in such courses, organized into modules or weeks.

---

### **Course Title**: Programming in C


### **Duration**: 10–12 Weeks
### **Level**: Beginner to Intermediate

---

### **Course Objectives**:


1. Understand the fundamentals of programming using C.
2. Learn the syntax, semantics, and structure of the C language.
3. Solve problems using structured and modular programming techniques.
4. Develop programs involving file handling, pointers, and memory management.

---

### **Syllabus**

#### **Module 1: Introduction to C Programming**


- History and features of C
- Structure of a C program
- Compilation and execution process
- Basic syntax and semantics
- Writing and running your first C program

#### **Module 2: Basics of Programming**


- Variables, constants, and data types
- Input and output functions: `printf()` and `scanf()`
- Operators: Arithmetic, relational, logical, bitwise
- Typecasting and precedence of operators

#### **Module 3: Control Flow Statements**


- Conditional statements: `if`, `if-else`, `else-if`, `switch`
- Looping constructs: `for`, `while`, `do-while`
- Break and continue statements

#### **Module 4: Arrays and Strings**


- Introduction to arrays: One-dimensional and multi-dimensional
- Array operations
- Introduction to strings
- String manipulation functions (`strlen`, `strcpy`, `strcat`, `strcmp`)

#### **Module 5: Functions**


- Function declaration, definition, and call
- Passing arguments (by value and reference)
- Recursion
- Storage classes: `auto`, `static`, `extern`, `register`

#### **Module 6: Pointers**


- Basics of pointers
- Pointer arithmetic
- Pointer to arrays and strings
- Dynamic memory allocation (`malloc`, `calloc`, `realloc`, `free`)

#### **Module 7: Structures and Unions**


- Defining and using structures
- Arrays and pointers with structures
- Introduction to unions
- Difference between structures and unions
#### **Module 8: File Handling**
- File types and modes
- File operations: `fopen`, `fclose`, `fprintf`, `fscanf`, `fgets`, `fputs`
- Reading and writing binary files
- File pointers and error handling

#### **Module 9: Advanced Topics**


- Command-line arguments
- Bitwise operations in detail
- Preprocessor directives: Macros, `#define`, `#include`, conditional compilation
- Debugging and error handling

#### **Module 10: Project and Case Studies**


- Mini-project: Develop a C program to solve a real-world problem.
- Case studies: Analyze and discuss sample programs.

---

### **Assessment**:
1. Assignments: Weekly coding problems
2. Quizzes: End-of-module quizzes
3. Mid-term Exam: Covers Modules 1–5
4. Final Project: Develop a fully functional C program

---

### **Recommended Books**:


- *"The C Programming Language"* by Brian W. Kernighan and Dennis M. Ritchie
- *"Let Us C"* by Yashavant Kanetkar
- *"C Programming: A Modern Approach"* by K.N. King
IIT Madras
Syllabus (4 modules):
Module 1 : (Introduction to Computing) - 6 lectures

Fundamentals of Computing, Historical perspective, Early computers. Computing machine. Problems,


Pseudo-code and flowcharts. Memory, Variables, Values, Instructions, Programs.
Module 2 : (Introduction to C) 10 lectures
The language of C : Phases of developing a running computer program in C.
Data concepts in C :Constants, Variables, Expressions, Operators, and operator precedence in C.
Statements : Declarations, Input-Output Statements, Compound statements, Selection Statements.
Conditions, Logical operators, Precedences. Repetitive statements, While construct, Do-while
Construct, For construct.
Data types, size and values. Char, Unsigned and Signed data types. Number systems and
representations. Constants, Overflow.
Arrays. Strings. Multidimensional arrays and matrices.
Module 3 : (Modular Programming and Example Problems) ​: 10 lecture
Functions :The prototype declaration, Function definition.
Function call : Passing arguments to a function, by value, by reference. Scope of variable names.
Recursive function calls, Tail recursion. Analysing recursion, Tree of recursion, linear recursion.
Sorting problem : Selection Sort, Insertion Sort, Comparison between sorting algorithms. Sorting in
multidimensional arrays. Sorting in strings.
Search problem : Linear search and binary search. Comparison between search procedures. Recursive
and Iterative formulations.
Module 4 : (More Data Types in C) 14 lectures
Pointers : Pointer variables. Declaring and dereferencing pointer variables. Pointer Arithmetic.
Examples. Accessing arrays through pointers. Pointer types, Pointers and strings. String operations in
C.
Structures in C : Motivation, examples, declaration, and use. Operations on structures. Passing
structures as function arguments. type defining structures.
Self-referential structures. Dynamic Data Structures. Linked Lists. Examples.
File input-output in C. Streams. Input, output and error streams. Opening, closing and reading from
files. Programming for command line arguments.
Numerical errors due to data representations and machine precision. Approximation and error
analysis. Illustration through examples.
Course Textbooks :
C: How to program, H. M. Deitel, P. J. Deitel, 7th edition, Pearson Education, 2010.
References Textbooks :
R. G. Dromey, "How to Solve It By Computer", Pearson, 1982
A.R. Bradley, "Programming for Engineers", Springer, 2011
Kernighan and Ritchie, "The C Programming Language", (2nd ed.) Prentice Hall, 1988
Programming Laboratory :
Weekly 2.5 hours of lab. Programming Assignments : one each on the following topics.
 Linux, Editor, Compiler and Debugger
 Assignment statements
 Control Statements
 Loop Statements
 Arrays
 Functions
 Recursion
 File Input Output
 Numerical Methods.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy