Recursion can not be used for static variables since the memory for static variables are allocated only once . so if we use recursion, then it may give incorrect result . Generally, we do not want such things when implementing recursion.
For detailed explanation, refer http://stackoverflow.com/questions/10290527/why-do-static-variables-not-allow-recursion