24BCA12 · THEORY
Programming in C
4 credits · 4 teaching hours per week
52 contact hours · 3-hour examination
Internal assessment: 20 marks · Semester-end exam: 80 marks
I SEMESTER · SUBJECT GUIDE
Build your foundation. Think logically. Write better C.
#include <stdio.h>
int main(void) {
puts("Hello, BCA!");
return 0;
}Hello, BCA!THE COURSE AT A GLANCE
24BCA12 · THEORY
4 credits · 4 teaching hours per week
52 contact hours · 3-hour examination
Internal assessment: 20 marks · Semester-end exam: 80 marks
24BCA11P · PRACTICAL
2 credits · 4 teaching hours per week
52 contact hours · 3-hour examination
Internal assessment: 10 marks · Semester-end exam: 40 marks
LEARN THE CORE CONCEPTS
Use these syllabus-aligned summaries to plan your study. All four units now have complete lessons, interactive demonstrations and C playgrounds. Units 3 and 4 include explicit definitions and written model answers; Unit 4 adds animated pointer and function diagrams.
Algorithms and flowcharts; C history and features; program structure and execution; tokens, data types, variables, constants and headers.
Start with the problem, write the algorithm, then translate it into a complete C program.
Practice: area of a circle, largest of three numbers and the sum of N numbers.
Study Unit 1 · lessons & C playgroundFormatted and unformatted I/O; operators and expressions; if and switch; while, do–while and for; nested loops and jump statements.
Trace the condition, body and update separately. A do–while loop runs its body at least once.
Practice: input validation, number problems and loop tracing.
Study Unit 2 · I/O, operators & control flowOne- and two-dimensional arrays; declaration, initialization and memory representation; structures, member access and unions.
Array indices begin at zero. Structure members have separate storage; union members share storage.
Practice: matrix operations and student records.
Study Unit 3 · arrays, structures & unionsPointer declaration, initialization and arithmetic; addresses and values; user-defined functions, categories and argument passing.
C passes arguments by value. Passing an address lets a function modify the caller’s object through a pointer.
Practice: pointer-based swap and matrix operations using functions.
Study Unit 4 · pointers & functionsBEYOND THE FOUR THEORY UNITS
Strings support the practical syllabus. The supplied notes also cover recursion, searching and sorting, file handling, dynamic memory, linked lists and the preprocessor.
These additional topics are kept separate from the prescribed four-unit theory structure.
TURN CONCEPTS INTO PRACTICE
All 16 prescribed exercises now have complete solutions. Open any program for its algorithm, explained C code, sample run, extra test cases and viva answers.
8 PRESCRIBED EXERCISES
Numbers, selection, arrays and matrices.
8 PRESCRIBED EXERCISES
Strings, pointers, functions and records.
Write the algorithm → implement the program → test normal and edge inputs → record the output.
Every prescribed exercise below now has its own worked solution, runnable compiler and downloadable C source.
REVISE WITH PURPOSE
Practice prompts adapted from the supplied notes. These are study questions, not a prediction of the examination.
Answer checklist: definition → syntax or diagram → explanation → worked example → output and limitations.
Check your understanding with scored questions and explanations inside the complete lessons.
FURTHER STUDY
The original five-group topic outline is retained below. These groups are a browsing index, separate from the four-unit course guide. Study the complete lessons for all four units, then practise with their C playgrounds and self-check quizzes.