+1 vote
in Technology by (1.7m points)
When should we use the register storage specifier?

1 Answer

0 votes
by (1.7m points)
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.
...