This repository contains solutions to programming assignments for the subject CS1012: Problem Solving and Programming. Each assignment focuses on a specific topic in C programming, with problems implemented in separate files and organized by concept.
- Problem Solving and Program Structures
- Writing algorithms and drawing flowcharts
- Operators and Expressions
- Assignments based on arithmetic, relational, logical, and bitwise operators
- Control Structures and Loops
- Assignments using if-else, switch-case, for, while, and do-while loops
- Arrays
- Assignments on 1D and 2D arrays: declaration, initialization, traversal, and manipulation
- Functions and Recursion
- Assignments on user-defined functions, recursion, and parameter passing
- Structure and Union
- Assignments on defining and using structures and unions
- Pointers
- Assignments on pointer basics, pointer arithmetic, and pointer applications
- File Handling
- Assignments on reading, writing, and manipulating files
- Develop algorithms and draw flowcharts for basic programming problems.
- Implement programs using various operators and expressions in C.
- Solve problems using conditional statements and loops.
- Work with single-dimensional and multi-dimensional arrays for data storage and manipulation.
- Create modular programs using functions and recursive techniques.
- Use structures and unions to group related data and manage complex data types.
- Apply pointers for efficient memory management and advanced programming techniques.
- Read from and write to files, process file data, and perform file operations.
Each program is self-contained and can be found in its respective folder (Assignment-1 to Assignment-8). Please refer to the folder and file names for the corresponding assignment and question.
- Navigate to the relevant assignment folder.
- Each question is implemented in a separate
.cfile. - Compile and run the C files using a C compiler (e.g., GCC).
This repository is intended for academic use, providing structured solutions to foundational programming concepts in C. It serves as a reference for students learning problem solving, programming logic, and C language fundamentals.