Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 13.4 For statement operand assignment
#1
The third operand of the for statement has an assignment. Does the calculation violate the result that the assignment operator should not be used?

for ( pos = (&dev->list)->next, q = pos->next; pos != (&dev->list); pos = q, q = pos->next ) {/*        */}


Messages In This Thread
Rule 13.4 For statement operand assignment - by shaw - 07-01-2022, 10:46 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)