NotesB.Sc ITSoftware Lab-I (Programming in C)
BSIT105/BSBC105

Software Lab-I (Programming in C) Notes

Program:B.Sc IT
Semester:Semester 1
Credits:2
Units:1 Units

Subject Overview

The practical companion to Programming in C, covering keywords/identifiers, variables and I/O statements, all operator types, decision-making and loop constructs, functions and recursion, preprocessor directives and header files, arrays/pointers and file handling. A 2-credit core lab paper.

Subject at a glance

1

Units

12

Topics

2

Credits

1

Infographics

Unit-wise Syllabus

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

  • Keywords and identifiers
  • variable/constant data types and scope
  • formatted and non-formatted I/O
  • arithmetic/logical/conditional/assignment/bitwise operators
  • decision-making constructs (switch, if-else, nested if)
  • loops (while, do-while, for)
  • function definition/declaration/parameterization/recursion
  • preprocessor directives
  • standard header files
  • array declarations and string functions
  • pointer declarations
  • file creation and editing
ProcessLab workflow for every C program
  1. 1

    Understand the problem

    Inputs and outputs

  2. 2

    Write the algorithm or flowchart

  3. 3

    Code it

    gcc file.c -o file

  4. 4

    Compile and fix errors

  5. 5

    Test with sample and edge inputs

  6. 6

    Record output in the lab file

Study guide

This lab covers C programming in practice: keywords and identifiers, data types and scope, formatted and unformatted I/O, all operator types including bitwise, decision-making (switch, if-else, nested if), loops, functions with recursion, preprocessor directives, header files, arrays and string functions, pointers and file creation and editing. Keep a neat record and add a short note on the logic of each program.

Read Unit 1 notes

Why Software Lab-I (Programming in C) Matters

Regular practice in the lab is what turns knowledge of C into skill, and the programs here are the standard problems in beginner coding tests and interviews.

How to Prepare for Software Lab-I (Programming in C)

  • Write each program yourself and test it with several inputs.
  • Learn to use a debugger or print statements to find errors.
  • Prepare short viva answers on the logic of each program.

Software Lab-I (Programming in C): Frequently Asked Questions

What programs are asked in the C lab?

Programs on operators, conditions, loops, functions, recursion, arrays, strings, pointers and file handling.

Want the Complete Notes & Past Papers?

WhatsApp us and we'll send you the full notes, question banks, and previous year papers for Software Lab-I (Programming in C).