Paytm interview question

what is the difference between volatile and non volatile function