We can store a value at a specific memory address using pointers in C.
For instance, if we want to store the value 50 at the memory address 0x1000, we can do it in a single statement as follows:
*((int*)0X1000) = 50;
Alternatively, for a more explicit approach:
int *address = (int*)0x1000;
*address = 50;
In the first approach, we typecast the hexadecimal value 0x1000 to an integer pointer and then dereference it to store the value 50 at that memory location. In the second approach, we declare a pointer variable address and assign it the memory address 0x1000, and then assign the value 50 to the memory location it points to.