I'm trying to print a memory address in C, this is the code I'm using
#include <stdio.h>
int main() {
int v = 10;
printf("Address of the v: %p\n",&v);
return 0;
}
The output is supposed to start with 0x, but I don't have this thing, it shows this 0061FF14
I am using MingW32 gcc compiler
I changed it to 64 and when I typed the code again the output is 000000A57A7FF67C
When I use https://www.onlinegdb.com/ the output is normal with 0x
My machine is 64 bit I am using vscode editor, how do I make the address appear as normal 0x