PWC
PWC
VITH C
Codc:23CM3 I 02 Cf'cdits: 3
Instruction : 3 Periods Scssional Ma rks: 40
End Exarn : 3 Hours End Exam Marks : 60
Prerequisite: No specific prerequisites are needed
Course Objectives:
• This course aims 10 ptovide exposure to problem-solving through programming in C.
• lt aims 10 lrain the sludenl, the concepts of C-Prograrnming Language.
Course Outcomes:
After completion ofthis course, a student will be able to:
CO I Gain knowledge in problem solving and steps in Program development.
CO 2 pply the basic concepts of C.
CO 3f reate user defined functions and implement string operations,
CO 4 fmp lemem different operations on arrays and Demonstrate pointers.
_~ pply structures and unions and lmplement file Operations in C programming for any given
CO~ application
PO PSO
co
1 2 3 4 s 6 7 8 9 10 JI 12 1 2
I I 2 3 2 I - - - - - - I - -
-·
2 2 3 3 2 I - - - - - - I - -
3 2 3 2 2 j - - - - - - l - -
4 2 3 2 2 I - - - - - - I - -
s 1 2 3 2 I - - - - - - I - -
SYLLABUS
UNIT- I 12 Periods
Electronic Computers Then and Now, Computer Hardware, Computer Soflwarc,
Prnfessioual Ethics for Cornpul'er Programmcrs.(Text Book 2 Page 1-39)
Computer Languages. Writing Editing co1npiling and linking prngrams. Proip11m
Executfon, lnrroduction to C Language - Background, Structure of a C program,
Identifiers, Types, Variables, Constants, Coding Constants, Formatted Input / Output.
(Text Book 1)
Learning Outcomes: At the end of this Unit U1e student will be able
• To ga in knowledge in the concepts of problem solving
• Identify tbe sreps in Program development
UNlT-U: 12 Periods
Program-expressions, precedence and Associativity, Side effects, evaluating expressions,
mixed type ex pressions. statements. Selection - Making Decisions - Logical data and
operators, Bitwise Operators- logical bitwise operators, shift operators. bitwise use, Tw() way
selection, Multi way selection Repetition - canccpt of a loo_p. pretest and posttest loops,
initialization and updating, event con1rolled and counter controlled loops, loops in C, loop
examples, other statements related to looping. looping applications (Text Book 1)
Learning Out·comes: At the end of this Unit Lbe student will be able to
• Apply decision making inc programming for problem solving
• Apply controlled structures io c prograrnmil1g for problem solving
UN IT-Ill : 12 Periods
Functions-Designing Structured Programs, Functions in C, user defined functions, standard
libraryfunctions, scope, Recursion
Storage classes-auto, register. stat:ic, extern
Stirings - Concepts, C Strings, S11ing Input / Output functions, arrays of strings, string
maaipulation functions (Text Book 1)
Learning Outcomes: Al the end of this Unit the student will be able to
• lmplement User defmed functions.
• Use string functions and Apply string manipulation operations fo r problem solving.
UNJT-IV: 12 Periods
Arrays - Concepts, using arrays h1 C. array applications, linear search, and Bubble sort.
two - dimcnsionalarrays. multidimensional arrays.
Pointers - Pointer Applications - Arrnys and Pointers, pointer arithmetic t1nd arrays,
passing ru1 array to a function. understru1dingcomplex declarations, memory allocation
functions. array or pointers. (Text Book I)
Learning Outcomes: At I.he end of this Unit the student wiJl be able to
• implement Arrys with different dimensions
• Work wi th pointers and apply pointer to otJ1er data types and function
UNIT-V: 12 Periods
Derived Types Enumerated, Structure and Union Types - The Type Definition (typedel),
Enumerated types, Structures, accessi ng structures, Complex structures, arrays of structures,
structures and functions, unions:
Text Files - Concept of a fi le, files and streams, input / output functions, formattfog
input/output functioos,character input/output functions, character input/output examples
(Text Book 1)
Learning Outcome: Al the end of this Unit the student will be able to
• Create derived data types using structure and union
• Store and retrieve data using files
Text Books:
1. B. A. Forouzan and R. F. Gilberg - Cengage l earning. Computer
Science: A Structured Programming Approach Using a Third Edjtion.
2. Jeri R. Hanly, Elliot B, .Koffman , -Problem solving and program Design in Q , 7m
Edition
3. R.G.Oromey , -1/ow ro solve ii by computer. Pre11tice-Hall l11rernolio11al
Series in Computer Sciencel C.A. R. Hoare Series Editor
Reference Books:
L "Dietal & Dcitall , -C How to Program 7/E" ,PHI Publications
2. Yasbavant Kanctkar , -Let Us C", 161h Edition
3. Brian W. Kernighan and Dennis M.Ritchie, -The C ProgrammingLanguage ··,
Prentice Hall of India