in Technology by

When should we use the register storage specifier?

Please log in or register to answer this question.

1 Answer

0 votes
by

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. S++ or S = S+1, which can be recommended to increment the value by 1 and why? S++, as it is single machine instruction (INC) internally.

Related questions

0 votes
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
asked Sep 28, 2021 in Technology by JackTerrance
0 votes
asked Feb 15, 2022 in Education by JackTerrance
...