Global variables are most of the time constants(const) Global variables are destroyed when the program(main) ends. Global variables space is allocated on the global memory space(not the stack or heap) When a function is called, it's local variables are created on the stack. When the function ends the local variables that are present on the stack frame are removed.
pi 3.14159 is in the intiliazed data segment area right. now when in double areaofCircle r gets ie. 5 gets passed to the pow and in pow function it gets squared and then after squaring does that 25 value goes to the global area space to get multiplied with 3.14 ...as intiliazed data segment area or global space is not in the stack frame. how does the access happen between 3.14 and 25 . I am curious to know.??
Thanks for the videos, this deserves way more views.
This is the best explanation for the memory mechanism I have seen. Thanks!
It's very helpful! You definitely did a great job on making this concept easy to understand. Thanks!
Simple and beautiful.....thank you for this.
Brilliant videos, thank you so much.
Really well explained! Thank you
Excellent lesson. thank you!
Thank you ! now I understand the call stack :)
Global variables are most of the time constants(const)
Global variables are destroyed when the program(main) ends.
Global variables space is allocated on the global memory space(not the stack or heap)
When a function is called, it's local variables are created on the stack. When the function ends the local variables that are present on the stack frame are removed.
well explained , cheers!
thank you so much! you helped us
amazing clear explication
bro i thank u
it helped me alot
Thanks for the vid
great video!
well explained...thnx
Very clear explanation, however this didn't explain dynamic and static links in memory allocation =)
nice job.
pi 3.14159 is in the intiliazed data segment area right.
now when in double areaofCircle r gets ie. 5 gets passed to the pow and in pow function it gets squared and then after squaring does that 25 value goes to the global area space to get multiplied with 3.14 ...as intiliazed data segment area or global space is not in the stack frame.
how does the access happen between 3.14 and 25 . I am curious to know.??
ud man, thanks
incrediblllleee
If you wanted to include queue on this visual representation would stack be split in half, including queue?
You are confusing the the data structure called a stack with stack based memory.
good
areaOfCircle returns 78.53981634, not 28.5397.
Wow he made a typo , what a big crime! Better point that out in CZcams
why no teacher have ever taught me like this
Maybe you’ll find it in Class : Program Design Methodology.
could u just Zoom out rather than moving screen each time.. it rolls my eyes.. :(