Discussion
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.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development