Question d’entretien chez Qualcomm

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