How do you use hexadecimal in turbo c?

for exmaple:

int main (void)
{
unsigned long x= 0xdeadbeefL;
printf ("x=%lx\n", x);
return 0;
}