1.       Difference Between Flowchart and Algorithm
2.       Difference Between Variable and Constant
3.       Difference Between Type Conversion and Type Casting
4.       Difference Between Switch case and If else
5.       Difference Between Syntax Error and Runtime Error


1.    Difference Between Flowchart and Algorithm
Difference Between Flowchart and Algorithm
Flowchart


Flowchart
Algorithm
Graphical representation of an algorithm is understood as flowchart.
An algorithm may be a set of instruction that results in an answer it's a step by step solution of particular problem.
Preparing Flowchart for complex problem is extremely difficult.
Preparing Algorithm for complex problem isn't difficult.
Reproduction of Flowchart is extremely difficult as compared to Algorithm.
Reproduction of Algorithm is extremely easy as compared to flowchart.
A problem are often easily understand using Flowchart as compared to algorithm.





2.    Difference Between Variable and Constant
Difference Between Flowchart and Algorithm
Algorithm


Variable
Constant
Variable may be a named location in computer’s memory.
Constant means fixed value.
Value of the variable may change during execution of the program.
Value of the constant cannot changed during execution of the program.
While declaring variable we must need to specify data sort of the variable.
While declaring constant we don't need to specify data sort of the constant.
It is not necessary to assign value at the time of variable declaration.






3.    Difference Between Type Conversion and Type Casting

Type Conversion
Type Casting
It is performed by compiler.
It is performed by user.
It is also referred to as Implicit type conversion.
It is also referred to as explicit type conversion.
It is performed automatically when:
1) Value of 1 type is assigned to a variable of various type.
2)  While evaluating expression that contains variable of various type.




4.    Difference Between Switch case and If else


Switch case
If else
Switch case statement is beneficial once you are given list of choices and from which you've got to pick just one option at a time.
If else statement is beneficial once you want to pick anybody of the given two choices supported the result of the condition.
It uses expression.
It uses condition.
Executes much faster as compared to if else.





5.    Difference Between Syntax Error and Runtime Error

Syntax Error
Runtime Error
Syntax error occurred during compile time due to some mistake in syntax.
Run time error occurs during run time due to un availability of resources or invalid inputs.
It is easy to seek out out and solve software error .




Post a Comment

Please do not enter any spam link in the comment box.

Previous Post Next Post