Scope of an identifier defined within a function, declared static?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mathilda
    New Member
    • Jan 2010
    • 1

    #1

    Scope of an identifier defined within a function, declared static?

    Hii friends please respond to this question

    I am unable to get the scopes of identifiers declared within a static and non static function..
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    Identifiers declared within a block are only accessible from within that block. This is true regardless of whether the block is the outermost braces of a function or an inner block of a function. It doesn't matter whether or not the function is static. It doesn't matter whether or not the identifier is declared static.

    Comment

    Working...