#include <stdio.h> int main(int argc, char *argv[]) { int dec; int *p; dec = 12345; p = &dec; printf("Dec: %d\n", *p); printf("Hex: %#x\n", *p); return 0; }