Home » C++ Programming » Data Types » Question
  1. Identify the incorrect statements.
     int num = 23;
    Statement (i): int *ptr = &(num + 2);
    Statement (ii): int *ptr2 = #
    Statement (iii): &&num = 50;
    1. Statement (ii) and (iii) are wrong
    2. Statement (i) and (iii) are wrong
    3. Statement (i) and (ii) are wrong
    4. All the three are wrong
    5. None of these
Correct Option: B

In statement (i) value is required as unary ‘&’ operand and in statement (iii) value is required as left operand.



Your comments will be displayed only after manual approval.