Question d’entretien chez Cognizant

What are Recursive functions? what is static & dynamic memory? Write a code for Armstrong and factorial.