## Hyperbolic Math Functions In C++

In this post today I am going to explain different hyperbolic math functions in C++. Hyperbolic Math Functions: Method Description cosh(x) It computes the hyperbolic cosine of x. sinh(x) It computes the hyperbolic sine of x. tanh(x) It computes the…

## Exponential Math Functions In C++

In this post today I am going to explain exponential math functions in C++. Exponential Math Functions: Method Description exp(x) It computes the exponential e raised to the power x. frexp(value_type x,int* exp) It breaks a number into significand and…

## Trigonometric Math Functions In C++

In this post today I am going to explain trigonometric math functions in C++. C++ has several fundamental arithmetic functions, and the header file <math.h> is required to use them. Trignometric Functions: Method Description cos(x) It computes the cosine of…

## What is Destructor In C++

A destructor is the complete opposite of a constructor, it destroys class objects. It can only be specified once per class. It is called automatically, just like Constructors. A Constructor is what a destructor is. It has to be named after the class. It is, however, preceded with a tilde symbol (~). Destructors in C++ are not allowed to contain arguments. Modifiers can’t be used on destructors, either. #Note C++ Constructor and Destructor Example: Let’s look at an example of a C++ constructor and destructor that is automatically invoked: Output:

## Copy Constructor In C++

The Copy Constructor In C++ an overloaded constructor is called a copy constructor used to declare and initialize an object from another object is called a Copy constructor. Copy Constructor is of two types: Default Copy constructor: The default copy constructor…

## free() Function vs delete Operator in C++

The difference between the free() function vs delete operator in C++ will be discussed in this topic. So let’s begin. free() Function: In C++, the free() method is used to dynamically de-allocate memory. It’s essentially a C library function that’s specified…

## What are C++ Object Oriented Programming(OOPs) Concepts?

The main goal of C++ programming is to introduce the concept of Object-Oriented Programming and add some features to C programming. Many concepts such as inheritance, data binding, polymorphism, and many more are available in Object-Oriented Programming. True object-oriented programming…

## malloc() Function vs new Operator in C++

The malloc function and new operator both are working for creating the memory blocks dynamically.  The declaration of the malloc() function and a new operator is different but we can use both in C++.  The malloc function comes under the…

## What is Memory Management In C++?

To manage the computer memory and space to improve memory and system performance we need Memory Management In C++. Why is memory management required? Generally, everybody knows the array stores homogenous data and the size are fixed and can’t change…