Nov2017 cs Q9

0. ‘ptrdata’ is a pointer to a data type. The expression *ptrdata++ is evaluated as (in C++) :

  • Option : A
  • Explanation :
    Here ++ (unary operator) have high precedence than * (unary operator). So ++ will be evaluated first then * will be in action. So A is the correct option. So, option (A) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *