9.33 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.

Examples

void foo(void)
{
    register int i;
    int *j = &i;
}
Non-Confidential PDF file icon PDF version ARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.