Frage im Vorstellungsgespräch bei Aptiv

Difference between HW and SW interrupt? What does volatile do?