Questions tagged «misra»

12
终止if…else if带有else子句的构造有什么好处?
我们的组织有一个必需的编码规则(无任何解释): if…else if构造应以else子句终止 范例1: if ( x < 0 ) { x = 0; } /* else not needed */ 范例2: if ( x < 0 ) { x = 0; } else if ( y < 0 ) { x = 3; } else /* this else clause is …
136 c  misra 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.