AmitDiwan has Published 10744 Articles

Difference Between Backup and Recovery

AmitDiwan

AmitDiwan

Updated on 25-Mar-2021 05:39:26

1K+ Views

In this post, we will understand the difference between backup and recovery.BackupIt refers to storing a copy of the original data in a separate memory location.It is basically a copy of data that is used to restore the original data in case of a data loss/damage.It is the replication of ... Read More

Difference Between Local and Global Variable

AmitDiwan

AmitDiwan

Updated on 24-Mar-2021 14:20:09

11K+ Views

In this post, we will understand the difference between local and global variables.Local variableIt is generally declared inside a function.If it isn’t initialized, a garbage value is stored inside it.It is created when the function begins its execution.It is lost when the function is terminated.Data sharing is not possible since ... Read More

Difference Between Static and Dynamic Binding

AmitDiwan

AmitDiwan

Updated on 24-Mar-2021 14:17:55

2K+ Views

In this post, we will understand the difference between static binding and dynamic binding.Static BindingIt is resolved at compile time.It uses type of the class and fields.It uses private, final, and static methods and variables.Example: OverloadingDynamic BindingIt is resolved during run time.Virtual methods use this technique.It uses objects to resolve ... Read More

Difference Between Type casting and Type Conversion

AmitDiwan

AmitDiwan

Updated on 24-Mar-2021 14:17:37

4K+ Views

In this post, we will understand the difference between type casting and type conversion.Type castingA data type is converted to another data type using the casting operator by the developer.It can be applied to any compatible data types and incompatible data types.The casting operator is required to cast a data ... Read More

Difference Between break and continue

AmitDiwan

AmitDiwan

Updated on 24-Mar-2021 14:15:39

2K+ Views

In this post, we will understand the difference between break and continue statements.breakIt is used to terminate the enclosing loop like while, do-while, for, or switch statement where it is declared.It resumes control over the program until the end of the loop.It also helps with the flow of control outside ... Read More

Difference Between One-Dimensional (1D) and Two-Dimensional (2D) Array

AmitDiwan

AmitDiwan

Updated on 24-Mar-2021 14:15:09

935 Views

In this post, we will understand the difference between one dimensional array and two dimensional array.One dimensional arrayIt helps store a single list of elements that are similar data type.The total bytes is calculates as the product of the datatype of variable array and the size of the array.C++ declarationtype ... Read More

Difference Between Virtual and Pure Virtual Function

AmitDiwan

AmitDiwan

Updated on 24-Mar-2021 14:11:51

1K+ Views

In this post, we will understand the difference between virtual and pure virtual functions.Virtual FunctionIt has its own definition inside the class.The base class can override a virtual function.It doesn’t have a derived class.Declarationvirtual funct_name(parameter_list) {. . . . .};Pure Virtual FunctionIt doesn’t have a definition.If a class has at ... Read More

Difference Between while and do-while Loop

AmitDiwan

AmitDiwan

Updated on 24-Mar-2021 14:11:20

6K+ Views

In this post, we will understand the difference between the ‘while’ loop and the ‘do-while’ loop.while conditionThe controlling condition here appears at the beginning of the loop.The iterations do not occur if the condition at the first iteration results in False.It is also known as an entry-controlled loopThere is no ... Read More

Difference Between for and while loop

AmitDiwan

AmitDiwan

Updated on 24-Mar-2021 14:07:55

12K+ Views

In this post, we will understand the difference between the ‘for’ and the ‘while’ loop.For loopThe initialization, condition checking, and the iteration statements are written at the beginning of the loop.It is used only when the number of iterations is known beforehand.If the condition is not mentioned in the 'for' ... Read More

Difference Between Pointer and Reference

AmitDiwan

AmitDiwan

Updated on 24-Mar-2021 13:37:00

1K+ Views

In this post, we will understand the difference between pointer and reference.PointerIt can be initialized to any value.It can be initialized any time after its declaration.It can be assigned to point to a NULL value.It can be dereferenced using the ‘*’ operator.It can be changed to point to a different ... Read More

Advertisements