What is the exact difference between static tasks/functions and automatic tasks/functions ? please explain with a clear example

In reply to tejal vernekar:

Please re-read the entire thread. The default lifetime for the code you post is static.