in Technology by (1.8m points)
When should we use the register storage specifier?

1 Answer

0 votes
by (1.8m 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.

Related questions

+1 vote
asked Nov 9, 2020 in Technology by JackTerrance (1.8m points)