Array

Bubble Sort in C

Here you will learn about program for bubble sort in C. Bubble sort is a simple sorting algorithm in which each element is compared with adjacent element and swapped if their position is incorrect. It is named as bubble sort because same as like bubbles the lighter elements come up and heavier elements settle down. …

Bubble Sort in C Read More »

C Program to Insert an Element in an Array

Here is the simple C program to insert an element in a one dimensional array. The array should be in ascending order.   Output Enter size of array:6 Enter the array in ascending order: 1 2 4 5 6 7 Enter element to insert:3 Array after inserting element:1 2 3 4 5 6 7

C++ Matrix Multiplication Program

Here you will get C++ matrix multiplication program. What we are doing in this program. Read number of rows and columns for two matrix. Then check if matrix multiplication is possible or not. If not possible then show a message to user otherwise multiply them. Finally display the result. C++ Matrix Multiplication Program   Output