When should we use the register storage specifier?

Trainee Asked on August 15, 2019 in C++ Language.
Add Comment
1 Answer(s)

If a variable is used most frequently then it should be declared using register storage specifier, then possibly the compiler gives CPU register for its storage to speed up the look up of the variable.

Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.