Arnab Chakraborty has Published 4475 Articles

C++ Program to Compute the Sum of Diagonals of a Matrix

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 16:04:28

The utilization of 2-dimensional arrays or matrices is extremely advantageous for several applications. Matrix rows and columns are used to hold numbers. We can define 2D matrices in C++ using multi-dimensional arrays as well. In this article, we'll look at how to use C++ to calculate the diagonal sum of ... Read More

C++ Program To Find the Trace and Normal of a given Matrix

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 15:09:38

Several applications greatly benefit from the use of 2-dimensional arrays or matrices. Numbers are stored in rows and columns of matrices. Using multi-dimensional arrays, we may define 2D matrices in C++ as well. In this post, we'll look at how to use C++ to determine the Normal and Trace of ... Read More

C++ Program to Find the Normal and Trace

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 14:50:37

2-Dimensional arrays or matrices are very much useful in several applications. Matrices have rows and columns and store numbers inside them. In C++ also we can define 2D matrices using multi-dimensional arrays. In this article, we will see how to calculate the Normal and the Trace of a given matrix ... Read More

C++ Program to Compare two strings lexicographically

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 14:47:45

Lexicographic string comparison states the strings are compared in dictionary order. For example, if two strings ‘apple’ and ‘appeal’ are there, the first string will come next because the first three characters ‘app’ is the same. Then for the first string, the character is ‘l’ and in the second string, ... Read More

C++ Program to Print first letter of each word using regex

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 14:45:07

A useful tool for string operations is regex. This may be found in virtually all high-level current programming languages, including C++. Regular expressions (Regex) are utilized as general-purpose search patterns. For instance, by constructing a straightforward string known as a regular expression, we may implement password validation logic with at ... Read More

C++ Program to Swapping Pair of Characters

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 14:39:09

A string is a group of characters. They can be described as character arrays as well. An array of characters can be thought of as strings, and each string has a set of indices and values. The switching of characters at two specified indices in a string is one of ... Read More

C++ Program to Replace a Character at a Specific Index

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 14:37:16

Strings are a collection of characters. We can also say them as character arrays. Considering an array of characters as strings, the strings have specified indices and values. Sometimes we can perform some modification on strings, one such modification is replacing characters by providing a specific index. In this article, ... Read More

C++ Program to Iterate Over an Array

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 14:34:45

Arrays are data of the same type stored in contiguous locations in memory. To access or address an array, we use the starting address of the array. Arrays have indexing, using which we can access the elements of the array. In this article, we take a look at methods to ... Read More

C++ Program to Copy All the Elements of One Array to Another Array

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 12:22:48

The array data structures are used to store homogeneous data in a consecutive memory location to access them in a sequential manner. Arrays are linear data structure so that the basic operations on array can be performed in linear time. In this article we will see how to copy elements ... Read More

C++ Program to Sort the Elements of an Array in Ascending Order

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 12:21:17

To solve some problems effectively, it's important to arrange the data items in the correct sequence. One of the most popular arranging problems is the element sorting problem. This article will demonstrate how to arrange array members in C++ in ascending order (according to rising values). To arrange either numerical ... Read More

1 2 3 4 5 ... 448 Next
Advertisements