The memcpy function is used to copy a block of data from a source address to a destination address. Below is its prototype.
Predict the output of following C++ programs.
Given a C/C++ program, remove comments from it.
We have introduced operator overloading. In this post overloading of index operator  is discussed. Following are some useful facts about overloading of . 1)… Read More »
Assertions are statements used to test assumptions made by programmer. For example, we may use assertion to check if pointer returned by malloc() is NULL… Read More »
Do not be anxious about anything, but in everything, by prayer and petition, with thanksgiving, present your requests to god. Philippians 4:6 (Bible)
In C++, stream insertion operator “<<” is used for output and extraction operator “>>” is used for input.
Sometimes implementation of all function cannot be provided in a base class because we don’t know the implementation. Such a class is called abstract class.
Be self controlled and alert. Your enemy the devil prowls around like a roaring lion looking for someone to devour. 1 Peter 5:8 (Bible)
All the days of the afflicted are evil but he that is of a merry heart hath a continual feast. Proverbs 15:15 (Bible)
Cast all your worries on him, because he cares for you. 1 Peter 5: 7 (Bible) In Java, we can use final for a function… Read More »
Predict the output of following program:
Inline function is one of the important feature of C++. So, let’s first understand why inline functions are used and what is the purpose of… Read More »
Consider the following simple C++ code with normal pointers.
We have discussed introduction to Constructors in C++. In this post, copy constructor is discussed.