MCQs
Type cast
Because the dynamic_cast operator is used to convert from base class to derived class.
The operator which is having highest precedence is postfix and lowest is equality.
Because the * operator is having highest precedence, So it is executed first and then the + operator will be executed.
In this operator, if the condition is true means, it will return the first operator, otherwise second operator.
It is a separtor here.In c,the value a is stored in c and in d the value b is stored in d because of the bracket.
In this program, we are casting the operator to integer, So it is printing as 21 and 10
Because of the precedence the pre-increment and post increment operator, we got the output as 749736.
Here the condition is false on conditional operator, so the b value is assigned to c
j starts with the value 10. j is then incremented to 11. Next, j is added to 100. Finally, j (still containing 11) is added to 999 which yields the result 1010.