#include<stdio.h>
int main()
{
int* ptr=(int*)0x22FF74;
printf("%d",*ptr);
return 0;
}
was the code that printed the value in the address, but to print the address of a variable(in this case a pointer) you need to print out the reference (aka the "address of") operator &
so just change: printf("The Value of %X is %d", adress, *ptr);
to this: printf("The Value of %X is %d", &adress, *ptr);
and to nitpick, address is spelled with 2 d's, and instead of using system calls you should try and find better standard workarounds, such as cin.ignore(1000,'\n');
EXIT_SUCCESS could be better replaced with a 0; less typing anyway.