#include<stdio.h>
void main()
{
   int i = 5;
   printf("%p",i);
}
I tried to compile this program on Linux using GCC compiler which on compilation of the program issues a warning saying
%p expects a void* pointer 
and when run gives an output of 46600x3.
But when I compile it online using the site codingground.tutorialspoint.com I get an output
equals 0x5  i.e. a hexadecimal output, can anyone please explain the reason?
 
     
     
    