396 views
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]

1 Answer

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!

Related questions

2 votes
2 votes
0 answers
1
hem chandra joshi asked Jan 29, 2018
203 views
I have queryHow we can expand this a[0] =*(a..something like) ??
0 votes
0 votes
0 answers
3
Arun Rout asked Nov 29, 2018
390 views
1 votes
1 votes
1 answer
4
Gate Fever asked Oct 29, 2018
470 views
pls explain this;i never get its explanation on GO!