Hello all,
I ahve an doubt on storage method.
The local variable are stored in stack, dynamic variable are stored in heap.
But, i have a doubt, that where can i store the Global variable ?.
Hello all,
I ahve an doubt on storage method.
The local variable are stored in stack, dynamic variable are stored in heap.
But, i have a doubt, that where can i store the Global variable ?.
Globals along with static variables are located in the program's data segment.
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens