Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Undefined, unspecified, implementation-defined behaviour?

Também chamado de: undefined behaviour · unspecified behaviour · implementation-defined behaviour

Definition 2.9 University Computer Science — Year 1 · Capítulo 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.

Ler no capítulo →