int var = 10; int *ptr = &(var + 1); //statement 1 int *ptr2 = &var; //statement 2 &&var = 40; //statement 3

a) Statement 1 and 2 are wrong

b) Statement 2 and 3 are wrong

c) Statement 1 and 3 are wrong

d) Statement 1, 2 and 3 are wrong

int var = 10; int *ptr = &(var + 1); //statement 1 int *ptr2 = &var; //statement 2 &&var = 40; //statement 3

a) Statement 1 and 2 are wrong

b) Statement 2 and 3 are wrong

c) Statement 1 and 3 are wrong

d) Statement 1, 2 and 3 are wrong

You must be logged in to post a comment.

c

Explanation: In statement 1 lvalue is required as unary ‘&’ operand and in statement 3 lvalue is required as left operand.