You copied the Doc URL to your clipboard.

Address of a register variable

The address of a variable with register storage class can be taken.

Errors

The compiler generates a warning if you take the address of a variable with register storage class.

Example

void foo(void)
{
    register int i;
    int *j = &i;
}
Was this page helpful? Yes No