Page 1 of 1

what is the method of defining infinite loop according to MISRA C-2012 compalince

Posted: Mon Aug 06, 2018 5:34 am
by prem_annam
what is the method of defining infinite loop according to MISRA C-2012 compalince ?


Thank you.

Re: what is the method of defining infinite loop according to MISRA C-2012 compalince

Posted: Wed Sep 16, 2020 10:00 am
by misra-c
The MISRA-C compliance does not define an approach.

However, there are two common methods: for ( ; ; ) and while ( true ) - both are permitted by exceptions to Rule 14.2 and Rule 14.3 respectively