Pergunta de entrevista da empresa Tata Consultancy Services

Explain the four storage classes in C?

Resposta da entrevista

Sigiloso

6 de abr. de 2021

auto: This is the default storage class for all the variables declared inside a function or a block. extern: Extern storage class simply tells us that the variable is defined elsewhere and not within the same block where it is used. static:This storage class is used to declare static variables which are popularly used while writing programs in C language. register: It declares register variables which have the same functionality as that of the auto variables.