I have doubt on static variable in c language As I know static variable stay alive while program is running. if static variable is used in function (static local variable) What will be duration of variable. Will variable create and exit in each function call. I think static variable only initialize once it will not create and exit at each function call. What is life time of static variable in c language ?
Joined: Wed. Feb 28, 2018
Posts: 21 View posts
Last Edited: Thu. Feb 6, 2020 - 09:52 PM