Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Does anybody know if this rule was left out of MISRA-C:2012? Commented May 17, 2021 at 13:39
  • 3
    @Alix It is still there but relaxed from Required to Advisory (rule 15.1). When I wrote this old answer, the 2012 version wasn't official yet. There are also additional Required rules for how you are allowed to use goto if you use it in your program. The single break rule is still there but relaxed to Advisory. The rule against continue was removed. The single return rule was relaxed to Advisory. Commented May 17, 2021 at 13:47