What is register storage Class?



Shreya Said

+0 -0

Register storage class is a hint to the compiler that a local variable should be stored in a register instead of RAM, for faster access. Register variables have the same scope and lifetime as auto variables, but they cannot have the unary & operator applied to them, as they do not have a memory location. Register variables have a maximum size equal to the register size, usually one words.



Submit Your Response