Question d’entretien chez Paytm

what is the difference between volatile and non volatile function