Quick question:
In C are
andCode:&TIM1->CCR1
equivalent?Code:&(TIM1->CCR1)
Quick question:
In C are
andCode:&TIM1->CCR1
equivalent?Code:&(TIM1->CCR1)
Yep. -> is level 1 whereas & is level 2. Precedence determines grouping (where the "invisible parentheses" are). So the operands of -> are grouped with it first, as you show in the second code snippet.
C Operator Precedence
A little inaccuracy saves tons of explanation. - H.H. Munro
Thanks