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;             for (k = 0; k < colsA; k++) {            __________ __________ _____ ________ _______ _____.
_______ ______ ____ _______ ___ ______ ____ ___.
________ _____ _______ __________ ____ _____ _____ _____ ______ ______ _________ _________.
________ ____ ____ _____ __________ ________ _____ ____.
__________ ______ ______ _____ _______ __________ ___.
_______ ______ ____ ____ ___ _______ _________ __________ _____ _______ ______ _______.
_______ _____ ______ _______ ____ _____ ______ _________ __________.
_____ ________ ________ ___ _______ _________ ______.
_______ ___ _________ _________ ________ __________ ____ __________ ________.
________ ____ _______ _______ ____ ______ _____ ________ _______.
_________ _______ __________ __________ __________ _______ _____ ________.
_____ ______ _______ _______ ________ ____.
____ _________ __________ ______ ____ ____.
_____ ___ ______ _________ ______ _____ _____.
_________ __________ _________ _______ ______.
_________ ______ _____ ______ ______ _________ ______.
________ _____ _________ ___ ____ ___.
_______ __________ _________ ___ ___ _____ _________ _________ __________ _____ _________ _______.
____ _____ ________ _____ ____ _______ ___.
___ ___ ________ _____ __________ _______ ________ _______ __________.
______ ________ ____ ____ _____ _____.
_______ ________ ____ ____ _____ __________ ___ _______ ________.
__________ ________ ____ _____ ___ ________.
_________ ___ ______ ___ _________ ___ ______.
___ ______ _____ _______ ____ ___ ____ ___ ___.
_________ __________ __________ ______ _____ ________.
__________ ________ ___ _______ _______ _______ _____ ________ __________.
___ _________ _____ ___ ___ ______ ______ ______ _____ _________ ___.
________ _______ _________ ____ ______ __________ ________ ____ _______ _____ _________ ____.
____ _______ ___ _______ __________ __________ _______ ___ _________ ___ ____.
__________ ___ ____ ________ ___ ___ ___ ____ ________ __________.
_____ _______ ______ ____ ________ __________ __________ ___ _________ _______.
_____ _________ ___ __________ _____.
______ __________ ________ ________ ___ _________ _____ ______ ___.
__________ ___ ___ ________ _______ ______ ______ _______ ____ ________ ______ ______.
___ _____ ______ __________ _____ ____.
__________ ______ ______ ______ _________.
____ _______ ______ _____ ___ ____ ______ ____ _______ ________.
__________ _________ __________ _______ _________ ___ ____ ___ _________ _________ ______ ___.
_________ __________ _____ _________ _____ ________ ________ ______.
____ ____ ___ _______ ___ ________ _______ ______.
_______ ______ ________ __________ ________ __________ ________ ______ __________.
__________ _____ __________ ___ ___ ________ _________ ______ _______ ____ __________ _______.
________ _____ ___ __________ ___ ___ ____ __________ ___ ______ ______ __________.
_____ __________ ___ ____ _____ ___ _________ ______ __________ ___ _______ _______.
_____ _________ ____ _________ ______.
____ _______ ____ ________.
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