Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 12.1 - are extra parentheses not compliant?
#1
Quote:However, do not add too many parentheses so as to clutter the code and make it unreadable.
Does it means that the "not required" parentheses below are a violation of this rule? If not, is there a case where too many parentheses is a violation to this rule?
Code:
x = a + b; /* acceptable */
x = (a + b); /* () not required */


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)