#include <stdio.h> int main() { register int a=10; int *p; p=&a; }
Standard input is empty
prog.c: In function ‘main’: prog.c:6:1: error: address of register variable ‘a’ requested p=&a; ^ prog.c:7:10: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘int *’ [-Wformat=] printf("%u",p); ^
Standard output is empty