Question

Write a program in `C’ language that accepts two matrices as input and prints their product. Input: Two matrices A and B in two-dimensional arrays Output: Matrix `C’ which is result of A X B in the form of two dimensional array  

27 Apr 2023
Answer :
Word Count : 493

Here's an example program in C that accepts two matrices as input and prints their product:

 #include <stdio.h> #define MAX_ROWS 10 #define MAX_COLS 10 void matrixProduct(int A[][MAX_COLS], int B[][MAX_COLS], int C[][MAX_COLS], int rowsA, int colsA, int colsB) {     int i, j, k;     for (i = 0; i < rowsA; i++) {         for (j = 0; j < colsB; j++) {             C[i][j] = 0;          _____ __________ ___ _______ ________ ______ ___ ___.
______ _________ ____ ____ ________.
________ _______ ______ _______ ____ _______ _____.
___ __________ _________ ___ _______ ________ _______ _____ ________ _____ ______.
______ ________ _______ __________ ___ ________ ______ ________ ____.
_________ ________ ___ _______ _______ ___ ________ _______ _______ ____ __________.
_______ ________ ____ ________ _________ _______ ______ _____ _____ ________.
___ _______ _________ _______ _________ ___ _________ ________ __________ _______.
____ _____ _____ ___ ________ _________ _______ ________ _____ _________ __________ ____.
___ _____ ____ ____ ___ _________ _______ ___ _________ _______ ________ __________.
___ ________ _________ ____ ______ ___ _____ _________ ________ _____ ___.
_______ _____ ________ _________ ___ ______ ____ ________ ______.
____ _________ ___ ___ _____ __________ _____ ____ ___ ________ _________.
__________ ____ _____ _____ _______ __________ ____ ________.
___ _______ _________ _______ ____ ______ __________ ______ _________ ___ _____.
_________ ______ __________ _____ ______ ______ ______ _______ ___ _____ _______.
___ ____ ___ _____ ____ ______ _________.
______ _________ ____ ____ ______ __________ ___ _________ __________ _______ ______ __________.
____ __________ __________ _____ _________ ________ ___ ________ ____ _________.
________ __________ _________ _______ _______ _______ _____.
_______ _________ __________ ______ _________ _____ _________.
________ _____ __________ ______ _________ ______ ________ _____ ___ ______ ___ ______.
___ ____ ___ _____ __________ __________ _____ ______.
_____ ________ ____ ______ _________ ____ _______.
___ __________ ________ ____ ______ ________ ________ ____.
__________ _____ ____ ____ _________ ___ __________ ______ ______ ________ _________.
___ __________ _____ __________ ________ _______.
______ ___ _____ _________ __________ __________ _________ ____ ______ _____.
_________ ___ _______ ______ __________.
____ _____ ________ ___ __________ ________ __________.
______ ________ __________ _____ ___ ___ ___ ________ _______.
___ ____ _____ _______ _____.
_________ ________ ____ ________ _____ ________ __________ _____ ______ ______ _______.
_____ ________ ________ _______ _____ ____.
__________ _____ _________ ____ _____ ______ _____.
___ ______ _________ ________ _________ ____ _________ _______ _____.
________ ____ ____ ________ ____ __________ _____ _____.
________ ______ ______ ___ _________ _______ _________ ___ _______ _________ ___.
_______ ________ ______ __________ __________.
____ ______ ___ ____ ____ _______.
__________ ___ ___ _______ ________ ___ _________ ________.
_____ ____ _______ _____ ________ ________ ______ _________.
_______ _________ _________ _____ _________.
_______ __________ ______ ____ _____ ________ ______ _______ _______.
______ _______ ______ ____ ____ ________ ______ __________ ____ ________ ___ ________.
____ _________ ___ ______ _________ ____ _________ _________ _________ _________.
_________ ______ __________ _________ _____ __________ ____ __________.
______.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write a program in `C’ language that accepts two matrices as inp
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→