Domanda di colloquio di Valeo

what is static ?

Risposta di colloquio

Anonimo

26 ago 2017

Static is a storage class in c. Features of storage classes; tells us the scope ,visibility and lifetime of the variable/function . If a variable inside a function or a block is declared as static, it can be used only in that particular block. In brief it restricts the access from outside the function. Thank you