I want to declare a static variable in function. And its value needs to be assigned first time only.
But the value that it needs to be assigned is also a variable. Force assigning a variable to static variable gave compiler error. Any suggestion to do the same by some alternative means.