Domanda di colloquio di Qualcomm

What is the difference between static and volatile variable from compiler perspective?