The register declaration looks like
register int x; register char c;and so on. The register declaration can only be applied to automatic variables and to the formal parameters of a function. In this later case, it looks like
f(register unsigned m, register long n)
{
register int i;
...
}
In practice, there are restrictions on register variables, reflecting the
realities of underlying hardware. Only a few variables in each function may be
kept in registers, and only certain types are allowed. Excess register
declarations are harmless, however, since the word register is ignored
for excess or disallowed declarations. And it is not possible to take the
address of a register variable, regardless of whether the variable is actually
placed in a register. The specific restrictions on number and types of register
variables vary from machine to machine.