Persistent Variables:
Generally, whenever a function stops executing, then the local variables from that function are cleared. That means that each and every time a function is called, then the memory is allocated and used while function is executing, but released whenever it end . With the variables which are declared as persistent variables, though, the value is not cleared and hence, the next time the function is called, the variable still exists and holds its previous value.