Chapter:
Arrays-
Write a program in C for multiplication of two square Matrices.
#include <stdio.h>
void enterData(int first[][10], int second[][10], int r1, int c1, int r2, int c2);
void multiplyMatrices(int first[][10], int second[][10], int multResult[][10], int r1, int c1, int r2, int c2);
void display(int mult[][10], int r1, int c2);
int main()
{
int first[10][10], second[10][10], mult[10][10], r1, c1, r2, c2;
printf("Enter rows and column for the first matrix: ");
fflush(stdout);
scanf("%d %d", &r1, &c1);
printf("Enter rows and column for the second matrix: ");
fflush(stdout);
scanf("%d %d", &r2, &c2);
// Taking input until columns of the first matrix is equal to the rows of the second matrix
while (c1 != r2)
{
printf("Error! Enter rows and columns again.\n");
printf("Enter rows and columns for ....Show MoreAll Chapters
View all Chapter and number of question available From each chapter from C-programming-
C Programs on integers
C Programs with explanation and detailed solution and output for practising and improving your coding skills, suitable for any level learner..
C programs on various integers
C programming tutorials Coming soon...
Learn and master the C Programming concepts with IOEBOOSTER, suitable for both beginners and intermediate level students as per IOE and POU syllabus.These c programming tutorials are completely free and important for exam point of view and for mast..
Recursive program in c
Recursion in computer science is a method of solving a problem where the solution depends on solutions to smaller instances of the same problem. Such problems can generally be solved by iteration, but this needs to identify and index the smaller instances at programming time.
Arrays
- c programms on arrays
- complete IOE solution on arrays
- Detailed description
- And much more
Strings in C programming
- c programms on Strings
- complete IOE solution on Strings
- Detailed description
- Each one using pointer Concepts
- And much more
Data Files
- C programming concepts of data files and data structures
- IOE C Programming Solutions
- Important Numerous C Program
Pattern Printing in C
Learn to print half pyramid, pyramid, inverted pyramid, Pascal's Triangle Floyd's triangle and various pattern in C Programming using control statements. This helps you to build up your logic towards C Programming Problems.
Similar Question
This Chapter Arrays- consists of the following topics
Guest