fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. register int a=10;
  5. int *p;
  6. p=&a;
  7. printf("%u",p);
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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);
          ^
stdout
Standard output is empty