Skip to the task
Layout
Back to classic view

You are looking at: Practice test 2. Your place is still lesson 2, task 1: Types.

CHECKTask 9 of 17 · step 3: Questions 7–12

*p.x

void move(Point *p) { *p.x = 3; } Why doesn't it compile?

Stuck?

. binds tighter than *: *(p.x). GCC: 'p' is a pointer; did you mean to use '->'? Correct: p->x = 3. (Topic 10)