i ran into a question i didnt know the answer to so i am posting here :) does a static variable defined (not initialized) on the start of the program or when i enter the function it is defined in?
i know that the initialization of the static variable happens in the function it is defined, but i am not talking about initialization but definition, when it takes sapce in my stoarge.
i found out it is always in a lower address than the local variable in the main? is it related? is the variables always lower in the address if they are defined before? thanks for the answers