Multiple choice

The arrow operator accesses structure member via a pointer to object

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The arrow operator (->) is used in C/C++ to access members of a structure or class through a pointer. If ptr is a pointer to a structure, ptr->member is equivalent to (*ptr).member. This is a fundamental pointer operation for structured data.