Comment on the output of this C code?
int main()
{
int a = 10;
int **c -= &&a;
}
Answer: B
Correct answer: We don't have address of an address operator
There is no && address operator in C. The token exists only as logical AND, so &&a is parsed as that operator with a missing left operand and the line will not compile. To obtain a pointer to a pointer you must have a pointer object to take the address of, as the earlier questions do with &p.
Please log in or register to report this question.