Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

samyakjainx/CodeAlpha_MatrixOperations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

Matrix Operations in C

A simple menu-driven Matrix Operations program developed in C as part of my CodeAlpha C Programming Internship.

The project demonstrates the implementation of basic matrix operations using functions and 2D arrays while keeping the code simple, modular, and beginner-friendly.


Features

  • Matrix Addition
  • Matrix Multiplication
  • Matrix Transpose
  • Input Validation
  • Menu Driven Interface
  • Modular Programming using Functions

Technologies Used

  • C Programming
  • Functions
  • 2D Arrays
  • GCC Compiler / CodeBlocks / VS Code

Project Structure


CodeAlpha_MatrixOperations/
│── matrix_operations.c
│── README.md
│── LICENSE
│── .gitignore
└── screenshots/
 │── menu.png
 │── addition.png
 │── multiplication.png
 │── transpose.png
 │── exit.png

How to Run

Compile


gcc matrix_operations.c -o matrix_operations

Execute


./matrix_operations

or on Windows


matrix_operations.exe

Sample Menu


====================================
 MATRIX OPERATIONS
====================================
1. Matrix Addition
2. Matrix Multiplication
3. Matrix Transpose
4. Exit
Enter your choice :

Sample Output

Matrix Addition

Input


Matrix A
1 2
3 4
Matrix B
5 6
7 8

Output


Result Matrix
6 8
10 12

Matrix Multiplication

Input


Matrix A
1 2
3 4
Matrix B
5 6
7 8

Output


19 22
43 50

Matrix Transpose

Input


1 2 3
4 5 6

Output


1 4
2 5
3 6

Concepts Practiced

  • Functions
  • Nested Loops
  • 2D Arrays
  • Matrix Manipulation
  • User Input Handling

Learning Outcome

Through this project, I improved my understanding of matrix operations, modular programming, and working with two-dimensional arrays in C.


Future Improvements

  • Matrix Subtraction
  • Identity Matrix Check
  • Symmetric Matrix Check
  • Dynamic Matrix Size

Author

Samyak Jain

CodeAlpha C Programming Internship 2026

About

Menu-driven Matrix Operations program in C implementing Addition, Multiplication, and Transpose using functions and 2D arrays.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /