Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Undefined, unspecified, implementation-defined behaviour?

Ook bekend als: undefined behaviour · unspecified behaviour · implementation-defined behaviour

Definition 2.9 University Computer Science — Year 1 · Hoofdstuk 2 — C: Types, Operators and Control Flow

Undefined behaviour is the behaviour of a construct for which the standard imposes no requirement at all: signed overflow, an access outside an array, two unsequenced side effects on one object, use of an uninitialised variable. Unspecified behaviour allows several outcomes without saying which: the order in which the two operands of + are evaluated. Implementation-defined behaviour is unspecified behaviour that each implementation must document: the width of int, or whether char is signed.

Lees in het hoofdstuk →