I have a C homework to do (I am a C++ guy) and the question asks us how to fix the following code the crashes:

int *a = 0;
*a = 5;

Fix it using dynamic memory management or static variables.

Now I have written programs that are 10,000 times longer. I am lost at what they are trying to do with the given code. So please help!