// COMP1511 lecture example // a memory address as decimal & hexadecimal // Andrew Taylor - andrewt@unsw.edu.au #include int main(void) { int x; printf("memory address of x in hexadecimal is %p\n", &x); return 0; }