Arnab Chakraborty has Published 4293 Articles

C/C++ Program to Find reminder of array multiplication divided by n ?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

265 Views

Here we will see how to calculate the remainder of array multiplication after dividing the result by n. The array and the value of n are supplied by the user. Suppose the array is like {12, 35, 69, 74, 165, 54} so the multiplication will be (12 * 35 * ... Read More

Addition of two numbers without propagating Carry?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

505 Views

Here we will see one problem, where we will add two n digit numbers but the carry will not be propagated. We can understand this concept through an example −So we can see that here only digits are getting added and answer is placed. Here is one trick. We have ... Read More

What's the difference between sizeof and alignof?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

682 Views

Here we will see what are the differences of sizeof and the alignof operator in C++. The alognof() operator is introduced in C++11.The alignof() operator is used to get the alignment in bytes. It requires instances of type. the type is either complete type or a reference type. There is ... Read More

All permutations of a string using iteration?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

841 Views

In this section we will see how to get all permutations of a string. The recursive approach is very simple. It uses the back-tracking procedure. But here we will use the iterative approach.All permutations of a string ABC are like {ABC, ACB, BAC, BCA, CAB, CBA}. Let us see the ... Read More

Area of triangle formed by the axes of co-ordinates and a given straight line?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

144 Views

Here we will see how to get the area of a triangle formed by the x and y axis and another straight line. The diagram will be look like below. The equation of the straight line is −𝑎𝑥+𝑏𝑦+𝑐=0The line is cutting the x-axis at the point B, and cutting the ... Read More

Argument Coercion in C/C++?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

2K+ Views

Here we will see about the argument coercion in C or C++. The Argument Coercion is one technique by which the compiler can implicitly convert the arguments from one type to another type. It follows argument promotion rule. If one argument is lower datatype, that can be converted into higher ... Read More

Arrange given numbers to form the biggest number?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

295 Views

Here we will see how to generate the biggest number by rearranging the given numbers. Suppose there are {45, 74, 23} is given, the program will find the largest number, that is 744523. So each digit will not be arranged. but the whole number will be placed to make largest ... Read More

Array get() function in C++ STL?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

321 Views

In this section we will see the get() function of array in C++ STL. This function is used to get the ith element of the array container. The syntax is like below −Syntaxget array_nameThis function takes two mandatory parameters. The is the index parameter. It is used to point to ... Read More

Array::crbegin() and array::crend() in C++ STL?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

121 Views

Here we will see the crbegin() and crend() functions of array in C++ STL.The array::crbegin() function is used to get reverse iterator. It returns constant reverse iterator pointing to the last element of the container. This function does not take any parameter.The array::crend() function is reverse of crbegin(). This returns ... Read More

Array::fill() and array::swap() in C++ STL?

Arnab Chakraborty

Arnab Chakraborty

Updated on 30-Jul-2019 22:30:26

572 Views

In this section we will see what are the usage of array::fill() and the array::swap() in C++ STL.The array::fill() function is used to fill the array with some specified value. Let us see one example to get the idea.Example Live Demo#include #include using namespace std; main() {    array arr = ... Read More

Advertisements