All Program Related To Data Structure
Description To reverse array using recursion, follow below program. C/C++ /* C Program to Reverse an Array using Recursion */ //Save it as ReversalArrayUsingRecursion.c #include<stdio.h> int main(){ int i, n;…
Description To rearrange an array such that arr[i] = i, first check if any element is equal to index or not, if yes swap the element. At last, check if…
Description Let we have arr[] = {1, 5 , 8, 6 , 4} and 1)we have to find 8 then our output will be 'Element 8 is present at position…
Description * To multiply two matrices, the number of columns of the first matrix should be equal to the number of rows of the second matrix. * If multiplication is…
Description * To add two matrices, the row and column of first matrix should be equal to row and column of second matrix respectively. * Addition is performed between corresponding…
Description The transpose of a matrix is a new matrix whose rows are the columns of the original. If matrix having dimension m*n the it's transpose having dimension will be…
Description * In two dimensional array first subscript denotes row, second denotes column. * Two dimensional array is an array of one dimensional arrays. * In 2D array, size of…
Description To swap maximum and minimum numbers of an aaray, first find the position of maximum and minimum element. When position found then swap the element of that position. C/C++…
Description Merge of two array means copy the elements of first and second array into third array. Compare the corresponding elements of the both array, copy the element into third…
Description To delete element in a array sorted in ascending order, first find the position of that element. Then follow the normal process of element deletion. C/C++ /* C program…