/Programming-and-Data-Structures-Lab

Programming and Data Structures Lab (CS19003)

Primary LanguageCMIT LicenseMIT

Programming and Data Structures Lab (CS19003)

LTP: 0-0-3   |   Credits: 2

Syllabus

Topics of Lab Assignments:

  1. Familiarization with C Programming Environment

    • Setting up a C compiler and IDE
    • Writing and executing basic C programs
  2. Data Types, Constants, and Variables

    • Declaring variables
    • Working with constants and data types
    • Using assignment statements
    • Input and output in C
  3. Conditional and Branch Statements

    • if, else, and else if statements
    • switch statements
  4. Loops and Iteration Statements

    • for loops
    • while loops
    • do-while loops
  5. 1-D and 2-D Static Arrays

    • Declaring and initializing arrays
    • Accessing elements in 1-D and 2-D arrays
    • Performing operations on arrays
  6. Functions and Recursion

    • Function declaration and definition
    • Passing arguments to functions
    • Recursive functions
  7. Structures

    • Declaring and initializing structures
    • Accessing structure members
    • Using structures in functions
  8. Pointers and Dynamic Memory Allocation

    • Pointer basics
    • Pointers and arrays
    • Dynamic memory allocation (malloc, calloc, free)
  9. Linked Lists

    • Insertion: Add nodes at the beginning, end, or specific positions
    • Deletion: Remove nodes from the beginning, end, or specific positions
    • Traversal: Navigate through the linked list to access elements
  10. Stacks and Queues

    • Implementing stack using arrays and linked lists
    • Implementing queues (FIFO) using arrays and linked lists

How to Use this Repository

  1. Clone this repository:

    git clone https://github.com/Samya-S/Programming-and-Data-Structures-Lab.git
  2. Navigate to the appropriate lab assignment folder:

    cd Assignment-1
  3. Compile and run the C programs:

    gcc filename.c -o outputfile
    ./outputfile

License

This project is licensed under the MIT License - see the LICENSE file for details.