Sie sind auf Seite 1von 10

C PROGRAMMING

Bachelors of Computer Application

MODULE MANUAL

Instructor:Ravi Govil
ravigovil@its.edu.in

Semester Second
Session – 2018-19
Section A

© Institute of Technology and Science


S. No. Contents

1 Module descriptor

2 Introduction and Learning Objectives

3 Mode of assessment

4 University Syllabus

5 Suggested Readings

6 Key Dates

7 Lecture timetable and Pedagogy

C Programming 2 Prof. Ravi Govil


Module Title: C Programming

Academic Year: 2018-2019 Total Sessions: 32

Time (per session): 55 Minutes Paper ID: BCA-202

Semester:II

Introduction/ Description:

1. Student must be aware about the fundamental of C with the basic knowledge of
programming.
2. It is assumed that the reader is familiar with the C Programming environment.

Course Objective:

 To learn the implementation of the logic using ‘C’programming language.


 To ensure a smooth and successful transition to being a skilled C programmer.

Learning Outcomes:

After taking this subject, the students should be able to:

(1) Demonstrate real life application using common C features;


(2) understand the pointers and dynamic memory environment;
(3) Understand and solve problems involving array, pointers, and file handling concepts.

Attributes for all-roundedness

(4) Develop skills in problem solving using systematic approaches;


(5) Solve complex problems in groups and develop working in team.

Mode of Assessment:

I. Internal Exam Duration (min/hours)


1) First (Written) 1 Hour 30 Minutes
2) Second (Written) 2Hrs
Class Test, Assignment, Quizzes, Presentation, Class participation.
II.

III. Attendance

TOTAL (I+II+III) 25 Marks

C Programming 3 Prof. Ravi Govil


University prescribed Syllabus:
C Programming

UNIT-I
Arrays
Definition, declaration and initialization of one dimensional array; Accessing array elements;
Displaying array elements; Sorting arrays; Arrays and function; Two-
Dimensional array: Declaration and Initialization, Accessing and Displaying, Memory
representation of array [Row Major, Column Major]; Multidimensional array
UNIT-II
Pointers
Definition and declaration, Initialization; Indirection operator, address of operator; pointer
arithmetic; dynamic memory allocation; arrays and pointers; function and pointers
UNIT-III
Strings
Definition, declaration and initialization of strings; standard library function: strlen(), strcpy(),
strcat(), strcmp(); Implementation without using standard library functions
UNIT-IV
Structures
Definition and declaration; Variables initialization; Accessing fields and structure operations;
Nested structures; Union: Definition and declaration; Differentiate between Union and structure
UNIT-V
Introduction C Preprocessor
Definition of Preprocessor; Macro substitution directives; File inclusion directives; Conditional
compilation
Bitwise Operators
Bitwise operators; Shift operators; Masks; Bit field
UNIT-VI
File handling
Definition of Files, Opening modes of files; Standard function: fopen(), fclose(), feof(), fseek(),
fewind();Using text files: fgetc(), fputc(), fscanf()
Command line arguments

C Programming 4 Prof. Ravi Govil


MODULE FORMAT

This module is taught via a series of lectures, case studies (in the form of different programs). In
addition to lectures reading about the topics from the different text book is required.

RECOMMENDEDREADING

Programming in ANSI C :E.Balaguruswamy [EBS],McGraw Hill[ Sixth Edition]


Let us C :YashwantKanitkar [YKC1], BPB Publication
Exploring C :YashvantKanetkar [YKC2], BPB Publication
Pointers in C – YashwantKanetkar ,BPB Publication

Student could also refer Internet for course material and for gaining current technologies in the
market. There are numbers of web portals where you can find the material. Some of them are
listed below:

1. C Language Tutorial
phy.ntnu.edu.tw/~cchen/ctutor.pdf
2. A Tutorial on Pointers and Arrays in C
pw1.netcom.com/~tjensen/ptr/pointers.htm

3. C Programming - Structures and Unions


www.exforsys.com/tutorials/c-language/c-structures-and-unions.html
4. Tutorials - Bitwise Operators and Bit Manipulations in C and C++ ...
www.cprogramming.com/tutorial/bitwise_operators.html

REFERENCES AVAILABLE IN THE LIBRARY:

KEY DATES

Assignments Content of Assignments Submission Deadline


1st Question of Unit 1 21(Jan) – 28(Jan) 2019
2nd Questions of Unit 2 12(Feb) – 19(Feb)2019
3rd Questions of Unit 3 12(March) – 19(March)2019
4th Questions of Unit 4 1(April) – 8(April) 2019
5th Questions of Unit 5 22(April) – 29(April)2019
Class tests/
Quizzes/Presentation
1st Surprise test/Online Test -
2nd Surprise test/Online Test -
Guest Lecture To be informed Later 3rd week of February

C Programming 5 Prof. Ravi Govil


Lecture Timetable

S.No. Topic Lecture Pedagogy Details Essential


No Reading

UNIT-I
Arrays
1 Revision of the important 1 Lecture Board and Let us C
Concepts Taught in previous marker :YashwantKanitkar
semester BPB Publication

2 Definition, declaration and 2 Lecture Board and Let us C


initialization of one dimensional marker :YashwantKanitkar
array; Accessing array elements; BPB Publication
Displaying array elements; CH 7 PAGE NO.
192-200
3 Sorting arrays 3-4 Lecture Board and Programming in
marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 7
PAGE No. 202-
203
4 Arrays and function Lecture Board and Programming in
5-6 marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 9
PAGE No. 296-
302

5 Two- Dimensional array: 7-8 Lecture Board and Programming in


Declaration and Initialization, marker Ansi C :
Accessing and Displaying, E.Balaguruswamy
Memory representation of array McGraw Hill[
[Row Major, Column Major]; Sixth Edition]
CH 7
PAGE No. 203-
215
6 Multidimensional array 9 Lecture Computing Handouts
Mean,
Median and
Mode Using
Arrays
7 Revision of Unit 1 10 Discussion Board and Discussion of
Marker Question of Unit 1

C Programming 6 Prof. Ravi Govil


based on the
University
Question Papers
UNIT-II
Pointers
8 Definition and declaration, 11 Lecture Board and Programming in
Initialization; Indirection operator, Marker Ansi C :
address of operator; E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 11
PAGE NO. 357-
366
9 pointer arithmetic 12 Lecture Board and Programming in
Marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 11
PAGE NO. 366-
369
10 dynamic memory allocation 13-14 Lecture Board and Programming in
Marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 13
PAGE NO.419-
425
11 arrays and pointers 15-16 Lecture Board and Programming in
Marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 11
PAGE NO. 369-
375

12 function and pointers 17-18 Lecture Board and Programming in


Marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 11
PAGE NO. 375-
381

C Programming 7 Prof. Ravi Govil


13 Revision of Unit 2 19 Discussion Board and Discussion of Q
Marker uestion of Unit 2
based on the
University
Question Papers
UNIT-III
Strings
14 Definition, declaration and 20 Lecture Board and Programming in
initialization of strings Marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 8
PAGE NO. 237-
252
15 standard library function: strlen(), 21 Lecture Board and Programming in
strcpy(), strcat(), strcmp() Marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 8
PAGE NO. 253-
261
16 Implementation without using 22-23 Case study 2 Handouts
C Program to
standard library functions
Input 2
Binary Strings
and Print
their Binary
Sum

17 Revision of Unit 3 24 Discussion Board and Discussion of


Marker Question of Unit 3
based on the
University
Question Papers
UNIT-IV
Structures
18 Definition and declaration; 25 Lecture Board and Programming in
Variables initialization; Accessing Marker Ansi C :
fields and structure operations; E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 10
PAGE No.324-
334

C Programming 8 Prof. Ravi Govil


19 Nested structures; 26 Lecture Board and Programming in
Marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 10
PAGE No.338-
340
20 Union: Definition and declaration; 27 Lecture Board and Programming in
Differentiate between Union and Marker Ansi C :
structure E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 10
PAGE No.342-
344

UNIT-V
Introduction C Pre-processor
21 Definition of Pre-processor; 28 Lecture Board and Programming in
Macro substitution directives; File Marker Ansi C :
inclusion directives; Conditional E.Balaguruswamy
compilation McGraw Hill[
Sixth Edition]
CH 14
PAGE NO. 452-
460
22 Bitwise Operators 29 Lecture Board and Let us C
Bitwise operators; Shift operators; Marker :YashwantKanitkar
Masks; Bit field , BPB Publication
Revision of Unit V CH 14 PAGE
NO. 490-
508,PAGE NO.
526-528
Discussion of Q
uestion of Unit 5
based on the
University
Question Papers
UNIT-VI
File handling

23 Definition of Files, Opening 30 Lecture Board and Programming in


modes of files; Marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 12
PAGE NO. 395-

C Programming 9 Prof. Ravi Govil


398
24 Standard function: fopen(), 31 Lecture Board and Programming in
fclose(), feof(), fseek(), Marker Ansi C :
fewind();Using text files: fgetc(), E.Balaguruswamy
fputc(), fscanf() McGraw Hill[
Sixth Edition]
CH 12
PAGE NO.398-
404
25 Command line arguments 32 Lecture Board and Programming in
Revision of Unit V Marker Ansi C :
E.Balaguruswamy
McGraw Hill[
Sixth Edition]
CH 14
PAGE NO. 414-
416
Discussion of
Question of Unit 6
based on the
University
Question Papers

C Programming 10 Prof. Ravi Govil

Das könnte Ihnen auch gefallen