menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Technology News

>

What reall...
source image

Medium

3w

read

175

img
dot

Image Credit: Medium

What really happens when you call a function in your code ?

  • Stacks in computing architectures work in a last-in — first-out (LIFO) manner where data is added or removed.
  • The call stack in programming can be compared to handling tasks in a busy kitchen by stacking pending tasks like sticky notes.
  • In programming, functions are pushed onto the call stack when invoked and popped off when their tasks are completed.
  • Recursive functions also operate on the call stack by pushing and popping function calls in a similar manner.

Read Full Article

like

10 Likes

For uninterrupted reading, download the app