NotesB.Sc ITProgramming in C
BSIT102/BSBC102

Programming in C Notes

Program:B.Sc IT
Semester:Semester 1
Credits:5
Units:4 Units

Subject Overview

Programming in C teaches structured programming from the ground up — algorithm and flowchart development, C fundamentals and control structures, functions/arrays/structures/unions, and pointers/files/preprocessor directives.

Read more

A 5-credit core theory paper that underlies every later programming course in the degree.

Unit-wise Syllabus

4 units — open any unit for detailed topic-wise notes, diagrams and important exam questions

  • Steps in program development
  • flowcharts
  • algorithm development
  • debugging
  • compilation and execution
  • I/O statements
  • assignment statements
  • constants
  • variables
  • operators and expressions
  • keywords
  • data types and identifiers

Study guide

This unit teaches how to move from a problem to a program: steps in program development, flowcharts, algorithms, debugging, compilation and execution, I/O and assignment statements, constants, variables, operators, expressions, keywords, data types and identifiers. Write the algorithm for each problem on paper before typing any code.

Read Unit 1 notes
  • Decision making with if/if-else/nested if
  • while/do-while/for loops
  • jump statements (break, continue, goto, switch)
  • function declaration and categories
  • parameters and parameter passing
  • call-by-value/reference
  • recursion
  • storage classes

Study guide

You learn how programs make decisions and repeat actions: if, if-else and nested if, while, do-while and for loops, break, continue, goto and switch, and functions, including categories, parameters, call-by-value and call-by-reference, recursion and storage classes. Practise tracing loops with a table of variable values.

Read Unit 2 notes
  • Array declaration
  • single and multidimensional arrays
  • memory representation
  • matrices
  • strings and string handling functions
  • structure declaration and member access
  • structure initialization
  • arrays of structures
  • nested structures
  • unions

Study guide

You study how to store collections of data: single and multidimensional arrays, memory representation, matrices, strings and string functions, structures (declaration, initialisation, arrays of structures, nested structures) and unions. Write a small student-records program using an array of structures.

Read Unit 3 notes
  • Address operator and pointers
  • declaring and initializing pointers
  • assignment through pointers
  • pointers and arrays
  • creating/opening/closing/processing a data file
  • macros
  • conditional preprocessors
  • header files

Study guide

You study pointers, files and the preprocessor: the address operator, declaring and using pointers, pointers and arrays, creating, opening, closing and processing data files, macros, conditional preprocessors and header files. Draw boxes and arrows to understand every pointer program.

Read Unit 4 notes

Why Programming in C Matters

C is the foundation of programming and the language behind operating systems and embedded systems. Mastering it makes every later language easier and is the single best preparation for coding interviews.

How to Prepare for Programming in C

  • Code every day, even a short program; fluency comes from repetition.
  • Dry-run programs by hand to find logic errors.
  • Learn the classic programs: prime, factorial, Fibonacci, palindrome, sorting and matrix operations.

Programming in C: Frequently Asked Questions

Is C a good first language?

Yes. C teaches how programs and memory really work, which gives a strong foundation for learning other languages.

What is the difference between call by value and call by reference?

Call by value passes a copy of the argument, so the original is unchanged, while call by reference passes the address, allowing the function to change the original.

Want the Complete Notes & Past Papers?

WhatsApp us and we'll send you the full notes, question banks, and previous year papers for Programming in C.