C Program for Strong Number

In this tutorial, we will learn about the strong number and write a C Program to find Strong Number. Strong Number Strong numbers are those numbers whose sum of the factorial of the individual digits is equal to the number itself. Example: 145 is a strong number. Explanation: 145 1! + 4! + 5! = … Read more

C Program for Pascal Triangle

In this tutorial, you will learn how to write a program to print Pascal’s Triangle in C. Before that you should be familiar with the following topic in C programming. Pascal’s triangle is one of the important examples that is taught to the student. The number outside Pascal’s triangle is zero (0), which is not … Read more

C Program to find Cosine value

In this tutorial, we will write a C Program to find Cosine series. Let us first by understanding what is cosine series. Cosine Series: It is a series used to find the value of cos(x), where x is the angle in degree which is converted to Radian. Formula: For Cos(x) series: Cos(x) = 1 – (x*2 / 2!) + … Read more

C++ Overloading (Operator and Function)

C++ allows us to overload methods, constructor and indexed properties. The function or operator define with the same name but with different types of parameters s called overloading. C++ has two types of overloading and they are: Function overloading Operator overloading C++ Function overloading Function overloading is a feature of object-oriented programming where multiple functions … Read more

LRU Page Replacement Algorithm in C

In this tutorial, we will look at C program for LRU Page Replacement Algorithm. Least Recently Used (LRU) Page Replacement algorithm It is an algorithm whose concept is based on the pages used in an instruction. The pages that are vigorously utilized in past instruction are probably going to be utilized intensely in the next … Read more

C Program to Compare two Strings using strcmp()

In this tutorial, we will Compare Strings Using strcmp() function in C. But if you want to learn more about String you may go through the following topic in C. strcmp() function is used to compare two string to each other and returns an integer value. The syntax for strcmp() in c: strcmp(first_string, second_string); The … Read more

C++ Polymorphism

Polymorphism means having many forms. The word “poly” means many and “morphs” means forms, which means it is the way of performing some task in many ways. That means a single function or an operator functioning in many ways. It is one of the major concepts of Object-oriented programming. Take a real-life example: A woman … Read more

C++ Copy Constructor

A copy constructor in C++ is used to create a copy of an already existed object. It is also used to Initialize one object from another of the same type. There are two types of copy constructor: Default Copy constructor User-Defined constructor Default Copy constructor: The default copy constructor is defined by the compiler when … Read more

C++ Destructor

As the name indicates, a C++ destructor destroys the object of a class as soon as the scope of an object ends. It is opposite to a constructor. When an object goes out of the scope, the compiler automatically calls the destructor function. Also, the destructor has the exact same name as the class, the … Read more

C++ Constructor

In C++, a constructor is a special type of method that is called automatically when an instance of the class (object) is created. The compiler calls the constructor and is used to initialize the data members of a newly created object. The constructor has the same name as its class. Also, it doe not have … Read more