What is C Storage Classes?

Discussion in 'C' started by johnBMitchell, May 9, 2012.

  1. johnBMitchell

    johnBMitchell New Member

    Joined:
    Feb 17, 2011
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    CA, USA
    Home Page:
    http://www.spinxwebdesign.com/
    When you write program then there are lots of function and variables used to store value on execution time. So how can you define variable or function in such a way that when execution over then it will release memory storage automatically. Answer is C storage, here you can define function or variable scope either it can be global (life time) or just local (execution time only).

    Following are the storage classes which can be used to define scope of variable and function:

    • Auto
    • Register
    • Static
    • Extern
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice