“%s”: It is format specifier %c represents single character. %s represents complete string(collection of characters) It is used to process(read & display) strings. Duplicate strings get different memory locations:
String: String is a one dimensional character array. String is a collection symbols(alphabets, digits and special symbols). Strings must be represented with double quotes. Syntax : char identity ; Example: char name; Character …
Multi dimensional arrays: More than 2 dimensional arrays come under multi dimensional arrays. To process the elements of n dimensions, we use n arrays with nested form The memory representation as follows. The elements of …
Matrix Multiplication:
Find Maximum row sum in a given matrix:
Transpose of Matrix:
Addition of 2 matrices:
Two dimensional arrays: Two dimensional arrays are used to store and process the data which is in the form of rows and columns. Generally we process the array elements using loops. To process two dimensional …
Bubble Sort: Simple sorting technique to sort elements in array. We can sort the elements in either ascending order or descending order. In bubble sort, index element always compare with the next element to it …
Binary Search: Searching technique to search for an element in the array We can apply binary search only on sorted array(elements either in ascending order or descending order). It finds the mid location of array …