โ† Bosch Global Software Technologies questions

Storage classes in C with examples

Filed under Bosch Global Software Technologies

Free read 1 of 3

A storage class decides a variable's scope, lifetime, default initial value and storage location. C has four: auto, register, static and extern.

The question

Explain the storage classes in C with an example.

Approach

  1. A storage class decides a variable's scope, lifetime, default initial value and storage location. C has four: auto, register, static and extern.

Tips

  • What they are testing: Give a table-like answer: scope, lifetime, default value and memory location for each class.
  • Common mistake: Saying register guarantees a register, or forgetting static variables default to zero.

Related Bosch Global Software Technologies questions

Collected from public candidate posts and coding forums. Updated Nov 2026.