Qualcomm interview question

Difference between static, volatile etc