Syllabus-C PRG (BCA I Sem)
Syllabus-C PRG (BCA I Sem)
UNIT II
Operators & Expression: Arithmetic, Relational, Logical, Bitwise, Unary, Assignment,
Conditional Operators and Special Operators Operator Hierarchy; Arithmetic Expressions,
Evaluation of Arithmetic Expression,
Type Casting and Conversion. Decision making with if statement, if-else statement, nested if
statement, else-if ladder, switch and break statement, goto statement, Looping Statements: for,
while, and do-while loop, jumps in loops.
UNIT III
Arrays: One Dimensional arrays - Declaration, Initialization and Memory representation; Two
Dimensional arrays -Declaration, Initialization and Memory representation.
Functions: definition, prototype, function call, passing arguments to a function: call by value;
call by reference, recursive functions.
Strings: Declaration and Initialization, String I/O, Array of Strings, String Manipulation
Functions: String Length, Copy, Compare, Concatenate etc., Search for a Substring.
UNIT IV
Pointers in C: Declaring and initializing pointers, accessing address and value of variables using
pointers; Pointers and Arrays.
User defined data types: Structures - Definition, Advantages of Structure, declaring structure
variables, accessing structure members, Structure members initialization, Array of Structures;
Unions - Union definition; difference between Structure and Union.
UNIT V* Practicum
Students are advised to do laboratory/practical practice not limited to, but including the
following types of problems:
To read radius of a circle and to find area and circumference
To read three numbers and find the biggest of three
To check whether the number is prime or not
To read a number, find the sum of the digits, reverse the number and check it for
palindrome
To read numbers from keyboard continuously till the user presses 999 and to find the sum
of only positive numbers
To read percentage of marks and to display appropriate message (Demonstration of else-
if ladder)
To find the roots of quadratic equation
To read marks scored by n students and find the average of marks (Demonstration of
single dimensional array)
To remove Duplicate Element in a single dimensional Array
To perform addition and subtraction of Matrices
To find factorial of a number
To generate Fibonacci series
To remove Duplicate Element in a single dimensional Array
To find the length of a string without using built in function
To demonstrate string functions
To read, display and add two m x n matrices using functions
To read a string and to find the number of alphabets, digits, vowels, consonants, spaces
and special characters
To Swap Two Numbers using Pointers
To demonstrate student structure to read & display records of n students
To demonstrate the difference between structure & union.