SEMESTER II
BCA2B02 – Problem Solving Using C
Course Number:10
Contact Hours per Week: 4(2T+2L)
Number of Credits: 3
Number of Contact Hours: 64Hrs.
Course Evaluation: Internal – 15 Marks + External – 60 Marks
Objective
To equip the students with fundamental principles of Problem Solving aspects.
To learn the concept of programming
To study C language
To equip the students to write programs for solving simple computing problems
Prerequisites
Knowledge of basic computer operations
Course Outline
Unit I [4T+ 4L]
Introduction to C Programming - Overview and Importance of C, C Program Structure, Sample
programs.
Familiarization of Integrated Development Environment - Invoking IDE, Opening a new window in
IDE, Writing, Saving and Compiling a C program, making an Executable File.
Elements of C Language and Program Constructs: Character Set, C Tokens, Keywords and
Identifier, Constants, Variables, Data types, Variable Declaration and Assignment of Values,
Symbolic Constant Definition.
Unit II [4T+ 6L]
C Operators - Arithmetic operators, relational operators, and logical operators, assignment
operators, increment and decrement operators, conditional operators, special operators, arithmetic
expressions, evaluation of expressions, precedence of arithmetic operators, Type conversion in
expressions, operator precedence and associativity, Mathematical Functions, I/O operations -
Library functions.
27 | P a g e Board of Studies UG | Computer Science& Applications | University of Calicut
Page 28 of 137
BCA(Academic Year 2019-20 Onwards)
Unit III [4T + 10L]
Data input output functions - Simple C programs – Flow of Control - Decision making with IF
statement, Simple IF statement, If-else statement, Nesting of If-else and else-if Ladder, Switch
statement, Conditional operator, goto statement. Looping - While loop, Do-While, and For Loops,
Nesting of loops, jumps in loop, skipping of loops.
Unit IV [6T+ 10L]
Arrays and Strings - One dimensional array, two dimensional and multi-dimensional arrays, strings
and string manipulation functions.
The Concept of modularization and User defined functions - Definition - Multifunction Program,
proto-types, Passing arguments, calling functions, various categories of functions, Nesting of
functions and recursion, functions and arrays, scope and lifetime of variables in functions, multi-file
programs.
Structures & Union structure definition - giving values to members, structure initialization,
comparison of structure variables, arrays of structures, arrays within structures, structures within
arrays, structures and functions, Unions, bit fields.
Unit V [6T+10L]
Pointers - Understanding pointers, accessing the address of a variable, declaring and initializing
pointers, accessing a variable through its pointer, pointer expressions, pointer and arrays, pointer
and character string, pointers and functions, pointers and structures, pointer to pointer dynamic
memory allocation.
Files: Creating, Processing, Opening and Closing a data file, command line operations
Textbook:
1. Balaguruswami. E, Programming in ANSI C, Tata McGraw-Hill Education, 2008
References
1. Brian W. Kernighan & Dennis M. Ritchie, The C Programming Language, Prentice Hall, 2nd
Edition 1998
2. Yashavant P. Kenetkar, Let us C
3. ByranGotfried, Schaums Outline series Programming with C
4. Ashok N. Kamthane, Programming in C, Pearson, 2nd Edition
28 | P a g e Board of Studies UG | Computer Science& Applications | University of Calicut
Page 29 of 137