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
Flowchart
|
Algorithm
|
Graphical representation of an algorithm
|
An algorithm
|
Preparing Flowchart for complex problem
|
Preparing Algorithm for complex problem
|
Reproduction of Flowchart
|
Reproduction of Algorithm
|
A problem
|
A problem
|
Variable
|
Constant
|
Variable
|
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
|
While declaring constant we
|
It is not necessary to assign value at the time of variable declaration.
|
It is compulsory to assign value at the time of constant 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
|
It is also
|
It is performed automatically when:
1) Value
2) While evaluating expression that contains variable
|
It is performed explicitly by user when user wants to convert variable
|
4. Difference Between Switch case and If
else
Switch case
|
If else
|
Switch case statement
|
If else statement
|
It uses expression.
|
It uses condition.
|
Executes much faster as compared to if else.
|
Executes slower as compared
|
5. Difference Between Syntax Error and
Runtime Error
Syntax Error
|
Runtime Error
|
Syntax error occurred during compile time
|
Run time error occurs during run time
|
It is easy
|
It is very difficult
|
Post a Comment
Please do not enter any spam link in the comment box.