Where the Stack variable stores ( Data segment or Heap or BSS) ?
- by SIVA
Some people are saying " stack variable store its value in HEAP ", and others saying " stack variable store store its value in DATA segment". I am totally confused with these conflict answers.
Where exactly static variable stores?. I am expecting an answer with standard reference ( text books, or good author tutorial).