Arnab Chakraborty has Published 4453 Articles

C++ Program to push an array into another array

Arnab Chakraborty

Arnab Chakraborty

Updated on 13-Dec-2022 15:02:36

5K+ Views

A linear sequential data structure called an array is used to store homogeneous data in a series of memory regions. An array needs to have certain features to insert, delete, traverse, and update elements effectively, just like other data structures do. Our arrays in C++ are static. In addition, C++ ... Read More

C++ Program to Access private members of a class

Arnab Chakraborty

Arnab Chakraborty

Updated on 13-Dec-2022 14:54:09

20K+ Views

Private members of a class are only accessed by the members of the class. This is done to preserve the object-oriented paradigm encapsulation, which ensures data and its related functions are kept in one unit and only accessible only from a member of that class. C++ has three different ... Read More

C++ Program to Create Custom Exception

Arnab Chakraborty

Arnab Chakraborty

Updated on 13-Dec-2022 14:47:38

3K+ Views

Exceptions are a very core concept of C++. Exceptions occur when an unwanted or impossible operation has occurred during execution. Handling these unwanted or impossible operations is known as exception handling in C++. Exception handling is mainly done using three specific keywords which are ‘try’, ‘catch’, and ‘throw’. The ... Read More

C++ Program to Show Use of This Keyword in Class

Arnab Chakraborty

Arnab Chakraborty

Updated on 13-Dec-2022 14:34:28

4K+ Views

The ‘this’ keyword in C++ is very important and it is used in multiple use cases. The ‘this’ keyword or the ‘this’ pointer is used as an implicit object parameter when an object’s member function is called and refers to the invoking object. We take a look at the different ... Read More

C++ Program to get the imaginary part of the given complex number

Arnab Chakraborty

Arnab Chakraborty

Updated on 12-Dec-2022 16:18:07

778 Views

Modern science relies heavily on the concept of complex numbers, which was initially established in the early 17th century. The formula for a complex number is a + ib, where a and b are real values. A complex number is known to have two parts: the real component (a) and ... Read More

C++ Program to convert a number into a complex number

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Dec-2022 11:54:26

1K+ Views

Complex numbers in C++ are available in the header and it enables a developer to represent and manipulate complex numbers. Complex numbers have the form a + ib, where 'a' is referred to as the complex number's real portion and 'ib' is the number's imaginary part. The imaginary portion ... Read More

C++ Program to initialize and print a complex number

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Dec-2022 11:43:52

2K+ Views

Complex numbers are a very fundamental concept in modern science, the concept is first introduced in the early 17th century. Complex numbers are of the form a + ib, where a and b are real numbers. a is known as the real part and ib is known as the imaginary ... Read More

C++ Program to calculate the logarithm gamma of the given number

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Dec-2022 11:37:26

347 Views

The gamma function is described as an extension of the factorial of every given number in mathematics. The factorial, on the other hand, can only be defined for real numbers, hence the gamma function exceeds to calculate the factorial on all complex values other than negative integers. It is represented ... Read More

C++ Program to calculate the logarithm of a given number based on a given base

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Dec-2022 11:28:31

3K+ Views

In almost any modern programming languages, we find the few logarithm functions like natural logs, log with base 2, log with base 10 etc. But sometimes we need to calculate logarithm with different base which are not available in the given library functions. To achieve this goal we can use ... Read More

C++ Program to calculate the base 10 logarithm of the given value

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Dec-2022 11:25:49

534 Views

Logarithms for base 10 are relatively required for natural computations in a variety of applications. For competitive examinations, there are a few quick ways to memorise a few log values. There are a few ways to compute logarithm results using library functions when programming, as well as a few shortcuts. ... Read More

Advertisements