As per the reference, many of them are says like it is stored in data segment. Which means if I declared the same static variable name in two more functions, the data segment contains more than a declaration of same variable. If it is like this, the collision occurs or not?.
So, where the static variables are stored. I think it is stored in text segment. So, only at each iteration of function, the value in the static variable remains same. If it is in data segment, the collision occurs. If it is in stack, the scope of the variable is extend upto the life time of the function, so it does not able to main the value stored in the variable. Is it right?