GCD of 2 numbers in C++

What is GCD? The greatest common divisor is the maximum number which divides two numbers. For e.g. GCD of 24 and 32: Divisors of 24: 1,2,3,4,6,8,12. Divisors of 32: 1,2,4,8,16. 8 is maximum number which divides both of them, Hence GCD of 24 and 32 is 8.   Following is the program to find GCD … Read more

Addition of two matrix in C++

How It Works: For 2D array size there must be constant value in square brackets like  array[constant value][constant value].   Two const variables row and col are used to define size. if we do not make both const then error found because without const reserve word they are behaving as variable. Before placing both variable … Read more

Pure Virtual Destructor in C++

Can a destructor be pure virtual in C++? Yes, it is possible to have pure virtual destructor in C++. Pure virtual destructor are legal in standard C++ and one of the most important thing is that if class contains pure virtual destructor it is must to provide a function body for the pure virtual destructor. … Read more

How to learn Programming from Scratch.

Learning programming is easy but learning it from scratch isn’t. This is a step by step process which you should learn. Start from here: 1) Acquire and read a book about basic computer science(I recommend picking up and reading just one book at first, then getting on to actual coding. You’ll never become a successful … Read more