0

For C Using stack, means throwing out called function variables first and then return address and then parameters. But when we use static storage class, the value of variable persists between different function calls. Stack uses last in, first out. and since function variables are last in, they should be first out but here they are not thrown out, so this means all the other information takes up memory as all... Is this how it works? But I feel this is not the most optimal way.. How are static storage class variables handled?

Scarlet
  • 1
  • 2

0 Answers0