• [^] # Re: Crash, boucle infinie, ou programme vide ?

    Posté par (site web personnel) . En réponse au journal Chantonnons en récursion. Évalué à 5.

    Il y a des exceptions:

    A loop that, outside of the for-init-statement in the case of a for statement,
    - makes no calls to library I/O functions, and
    - does not access or modify volatile objects, and
    - performs no synchronization operations (1.10) or atomic operations (Clause 29)
    may be assumed by the implementation to terminate. [ Note: This is intended to allow compiler transfor- mations, such as removal of empty loops, even when termination cannot be proven. — end note ]