employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged Employer

Tata Consultancy Services Interview Question

Explain the four storage classes in C?

Interview Answer

Anonymous

Apr 6, 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.