LTP: 0-0-3 | Credits: 2
-
Familiarization with C Programming Environment
- Setting up a C compiler and IDE
- Writing and executing basic C programs
-
Data Types, Constants, and Variables
- Declaring variables
- Working with constants and data types
- Using assignment statements
- Input and output in C
-
Conditional and Branch Statements
if
,else
, andelse if
statementsswitch
statements
-
Loops and Iteration Statements
for
loopswhile
loopsdo-while
loops
-
1-D and 2-D Static Arrays
- Declaring and initializing arrays
- Accessing elements in 1-D and 2-D arrays
- Performing operations on arrays
-
Functions and Recursion
- Function declaration and definition
- Passing arguments to functions
- Recursive functions
-
Structures
- Declaring and initializing structures
- Accessing structure members
- Using structures in functions
-
Pointers and Dynamic Memory Allocation
- Pointer basics
- Pointers and arrays
- Dynamic memory allocation (
malloc
,calloc
,free
)
-
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
-
Stacks and Queues
- Implementing stack using arrays and linked lists
- Implementing queues (FIFO) using arrays and linked lists
-
Clone this repository:
git clone https://github.com/Samya-S/Programming-and-Data-Structures-Lab.git
-
Navigate to the appropriate lab assignment folder:
cd Assignment-1
-
Compile and run the C programs:
gcc filename.c -o outputfile ./outputfile
This project is licensed under the MIT License - see the LICENSE file for details.