1 votes 1 votes if two variable are declared in different function with same name and static keyword then there will one variable in memory or two different variable [refrence gate 2020 programing question] Programming in C programming-in-c + – Pankaj_Kumar asked Nov 28, 2021 Pankaj_Kumar 396 views answer comment Share Follow See 1 comment See all 1 1 comment reply raja11sep commented Nov 28, 2021 reply Follow Share Two different address will be created. can you please post the link of that 2020 question. 0 votes 0 votes Please log in or register to add a comment.
2 votes 2 votes There will be two different copies one with each function. Static simply means that memory is in static area, if the variable is local than that behavior remains as it is only. Its scope is confined in that function only! bajpaiarjun0333 answered Nov 29, 2021 bajpaiarjun0333 comment Share Follow See all 0 reply Please log in or register to add a comment.