Pergunta de entrevista da empresa Qualcomm

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