-
-
-
What is the diffrence between static_cast and dynamic_cast in RTTI
dynamic_cast checks for datatype at runtime but static_cast checks at compilation. Is this the only diffrence b/w them or is there anything else? at the time of programming which shud we prefer to call.
-
-
-
-
-
What is the difference between an if statement and a switch statement
The if statement is used to select among two alternatives. It uses a boolean expression todecide which alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an int expression to determine which alternativeshould be executed.