Arnab Chakraborty has Published 4458 Articles

C++ Program to Swapping Pair of Characters

Arnab Chakraborty

Arnab Chakraborty

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

2K+ Views

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

1K+ Views

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

3K+ Views

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

2K+ Views

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

8K+ Views

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

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

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 12:18:13

2K+ Views

Arranging data items in a proper form is an essential task while solving some problems in an efficient way. The element sorting problem is one of the most commonly discussed arranging problem. In this article we will see how to arrange the array elements in descending order (decreasing order of ... Read More

C++ Program to Convert Set of String to Array of String

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 12:15:06

2K+ Views

Sets in C++ re containers that contain unique values of a specific type. Arrays or the array container in std C++ is a fixed-size container that contains elements of a specific size. Arrays are like vectors, but the main difference is that arrays are of a fixed size whereas vectors ... Read More

C++ Program to Convert List to Set

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 12:11:53

1K+ Views

Lists in C++ are containers the same as vectors, but list implementation is based on doubly linked lists compared to the array implementation of vectors. Lists generally do not contain elements in contiguous locations, the elements of a list are distributed throughout the memory. Lists offer the same constant time ... Read More

C++ Program to Print X Star Pattern

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 12:09:10

3K+ Views

Displaying star patterns in different shapes, like pyramids, squares, and diamonds, is a common part of basic programming and logic development. We faced various problems involving stars and numerical patterns as we studied looping statements in programming. This article will demonstrate how to print an X or a cross using ... Read More

C++ Program to Print Hollow Right Triangle Star Pattern

Arnab Chakraborty

Arnab Chakraborty

Updated on 14-Dec-2022 12:06:16

657 Views

Displaying star patterns in different formats like pyramids, squares, and diamonds is very common in fundamental programming and logic building. We have seen several stars and number pattern problems while learning looping statements in programming. In this article, we will see how to print a hollow right triangle star pattern ... Read More

Previous 1 ... 6 7 8 9 10 ... 446 Next
Advertisements