Qualcomm interview question

What is the difference between volatile and static code?